PrismLauncher/libraries/systeminfo/CMakeLists.txt

30 lines
628 B
CMake
Raw Normal View History

project(systeminfo)
find_package(Qt5Core)
set(systeminfo_SOURCES
include/sys.h
include/distroutils.h
src/distroutils.cpp
)
if (WIN32)
2018-07-15 13:51:05 +01:00
list(APPEND systeminfo_SOURCES src/sys_win32.cpp)
elseif (UNIX)
2018-07-15 13:51:05 +01:00
if(APPLE)
list(APPEND systeminfo_SOURCES src/sys_apple.cpp)
else()
list(APPEND systeminfo_SOURCES src/sys_unix.cpp)
endif()
endif()
add_library(systeminfo STATIC ${systeminfo_SOURCES})
2018-06-01 15:20:33 +01:00
target_link_libraries(systeminfo Qt5::Core Qt5::Gui Qt5::Network)
target_include_directories(systeminfo PUBLIC include)
include (UnitTest)
add_unit_test(sys
2018-07-15 13:51:05 +01:00
SOURCES src/sys_test.cpp
LIBS systeminfo
)