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