2015-09-28 20:53:46 +02:00
|
|
|
project(MultiMC_util)
|
2013-02-20 19:10:09 -06:00
|
|
|
|
2014-04-06 18:12:48 +02:00
|
|
|
include(Coverage)
|
2013-02-21 20:40:32 +01:00
|
|
|
|
2013-02-20 19:10:09 -06:00
|
|
|
# Find Qt
|
|
|
|
find_package(Qt5Core REQUIRED)
|
2015-09-28 20:53:46 +02:00
|
|
|
find_package(Qt5Gui REQUIRED)
|
2013-02-20 19:10:09 -06:00
|
|
|
|
2014-04-06 19:43:09 +02:00
|
|
|
set(LIBUTIL_SOURCES
|
2014-04-09 15:41:49 +02:00
|
|
|
src/pathutils.cpp
|
|
|
|
src/userutils.cpp
|
|
|
|
src/cmdutils.cpp
|
|
|
|
src/modutils.cpp
|
2015-09-28 20:53:46 +02:00
|
|
|
include/cmdutils.h
|
|
|
|
include/modutils.h
|
|
|
|
include/osutils.h
|
|
|
|
include/pathutils.h
|
|
|
|
include/userutils.h
|
2013-02-20 19:10:09 -06:00
|
|
|
)
|
|
|
|
|
2013-08-26 02:53:29 +02:00
|
|
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
|
|
|
2015-09-28 20:53:46 +02:00
|
|
|
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)
|