2015-09-29 00:23:46 +05:30
|
|
|
project(MultiMC_util)
|
2013-02-21 06:40:09 +05:30
|
|
|
|
2014-04-06 21:42:48 +05:30
|
|
|
include(Coverage)
|
2013-02-22 01:10:32 +05:30
|
|
|
|
2013-02-21 06:40:09 +05:30
|
|
|
# Find Qt
|
|
|
|
find_package(Qt5Core REQUIRED)
|
2015-09-29 00:23:46 +05:30
|
|
|
find_package(Qt5Gui REQUIRED)
|
2013-02-21 06:40:09 +05:30
|
|
|
|
2014-04-06 23:13:09 +05:30
|
|
|
set(LIBUTIL_SOURCES
|
2014-04-09 19:11:49 +05:30
|
|
|
src/pathutils.cpp
|
|
|
|
src/userutils.cpp
|
|
|
|
src/cmdutils.cpp
|
|
|
|
src/modutils.cpp
|
2015-09-29 00:23:46 +05:30
|
|
|
include/cmdutils.h
|
|
|
|
include/modutils.h
|
|
|
|
include/osutils.h
|
|
|
|
include/pathutils.h
|
|
|
|
include/userutils.h
|
2013-02-21 06:40:09 +05:30
|
|
|
)
|
|
|
|
|
2013-08-26 06:23:29 +05:30
|
|
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
|
|
|
2015-09-29 00:23:46 +05:30
|
|
|
add_library(MultiMC_util STATIC ${LIBUTIL_SOURCES})
|
|
|
|
|
|
|
|
qt5_use_modules(MultiMC_util Core Gui)
|
|
|
|
generate_export_header(MultiMC_util)
|
|
|
|
target_include_directories(MultiMC_util PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
|
|
|
set_property(TARGET MultiMC_util PROPERTY CXX_STANDARD 14)
|