pollymc/depends/util/CMakeLists.txt

29 lines
653 B
CMake
Raw Normal View History

2015-09-29 00:23:46 +05:30
project(MultiMC_util)
include(Coverage)
# Find Qt
find_package(Qt5Core REQUIRED)
2015-09-29 00:23:46 +05:30
find_package(Qt5Gui REQUIRED)
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
)
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)