pollymc/libraries/systeminfo/CMakeLists.txt
Petr Mrázek 82208be49e NOISSUE add linux distro name and release stats to analytics
Hopefully this can serve as some sort of guideline for focusing
effort towards the right distro packages to make.
2018-03-13 00:28:51 +01:00

30 lines
577 B
CMake

project(systeminfo)
find_package(Qt5Core)
set(systeminfo_SOURCES
include/sys.h
include/distroutils.h
src/distroutils.cpp
)
if (WIN32)
list(APPEND systeminfo_SOURCES src/sys_win32.cpp)
elseif (UNIX)
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})
qt5_use_modules(systeminfo Core Gui Network)
target_include_directories(systeminfo PUBLIC include)
include (UnitTest)
add_unit_test(sys
SOURCES src/sys_test.cpp
LIBS systeminfo
)