summaryrefslogtreecommitdiffstats
path: root/libraries/systeminfo/CMakeLists.txt
blob: 77cba17309537fdb99f1236eb4629226b34904d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
project(systeminfo)

find_package(Qt5Core)

set(systeminfo_SOURCES
include/sys.h
)

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
)