summaryrefslogtreecommitdiffstats
path: root/plugins/stdinstance/CMakeLists.txt
blob: b25b93b2ba36c4ff72184a72bade354500a21e6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
project(stdinstance)

ADD_DEFINITIONS(-DQT_PLUGIN)

# Find Qt
find_package(Qt5Core REQUIRED)
find_package(Qt5Network REQUIRED)

# Include Qt headers.
include_directories(${Qt5Base_INCLUDE_DIRS})
include_directories(${Qt5Network_INCLUDE_DIRS})

# Include the Java library.
include_directories(${CMAKE_SOURCE_DIR}/java)

# Include utils library headers.
include_directories(${CMAKE_SOURCE_DIR}/libutil/include)

# Include settings library headers.
include_directories(${CMAKE_SOURCE_DIR}/libsettings/include)

# Include instance library headers. 
include_directories(${CMAKE_SOURCE_DIR}libinstance/include)

SET(STDINST_HEADERS
stdinstancetype.h
stdinstance.h
)

SET(STDINST_SOURCES
stdinstancetype.cpp
stdinstance.cpp
)

add_library(stdinstance SHARED ${STDINST_SOURCES} ${STDINST_HEADERS})

set_target_properties(stdinstance PROPERTIES PREFIX "")
set_target_properties(stdinstance PROPERTIES RUNTIME_OUTPUT_DIRECTORY "..")

IF(UNIX)
	set_target_properties(stdinstance PROPERTIES LIBRARY_OUTPUT_DIRECTORY "..")
ENDIF()

qt5_use_modules(stdinstance Core Network)
target_link_libraries(stdinstance 
quazip
patchlib

# Link the util, settings, and instance libraries.
libmmcutil
libmmcsettings
libmmcinst
)