2013-02-20 14:32:26 +00:00
|
|
|
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})
|
|
|
|
|
2013-02-21 01:10:09 +00:00
|
|
|
# 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)
|
2013-02-20 14:32:26 +00:00
|
|
|
|
|
|
|
SET(STDINST_HEADERS
|
|
|
|
stdinstancetype.h
|
|
|
|
stdinstance.h
|
|
|
|
)
|
|
|
|
|
|
|
|
SET(STDINST_SOURCES
|
|
|
|
stdinstancetype.cpp
|
|
|
|
stdinstance.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(stdinstance SHARED ${STDINST_SOURCES} ${STDINST_HEADERS})
|
2013-02-21 01:10:09 +00:00
|
|
|
|
2013-02-20 14:32:26 +00:00
|
|
|
set_target_properties(stdinstance PROPERTIES PREFIX "")
|
2013-02-21 01:10:09 +00:00
|
|
|
set_target_properties(stdinstance PROPERTIES RUNTIME_OUTPUT_DIRECTORY "..")
|
|
|
|
|
2013-02-21 20:52:23 +00:00
|
|
|
IF(UNIX)
|
|
|
|
set_target_properties(stdinstance PROPERTIES LIBRARY_OUTPUT_DIRECTORY "..")
|
|
|
|
ENDIF()
|
|
|
|
|
2013-02-20 14:32:26 +00:00
|
|
|
qt5_use_modules(stdinstance Core Network)
|
2013-02-21 01:10:09 +00:00
|
|
|
target_link_libraries(stdinstance
|
|
|
|
quazip
|
|
|
|
patchlib
|
|
|
|
|
|
|
|
# Link the util, settings, and instance libraries.
|
2013-02-26 22:47:39 +00:00
|
|
|
libUtil
|
|
|
|
libSettings
|
|
|
|
libMultiMC
|
2013-02-21 01:10:09 +00:00
|
|
|
)
|