summaryrefslogtreecommitdiffstats
path: root/libraries/ganalytics/CMakeLists.txt
blob: 4b9a0ceee561a936b28ec8d27f74e473431117cf (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(ganalytics)

find_package(Qt5Core)
find_package(Qt5Gui)
find_package(Qt5Network)

set(ganalytics_SOURCES
src/ganalytics.cpp
src/ganalytics_worker.cpp
src/ganalytics_worker.h
src/sys.h
include/ganalytics.h
)

if (WIN32)
	list(APPEND ganalytics_SOURCES src/sys_win32.cpp)
elseif (UNIX)
	if(APPLE)
		list(APPEND ganalytics_SOURCES src/sys_apple.cpp)
	else()
		list(APPEND ganalytics_SOURCES src/sys_unix.cpp)
	endif()
endif()

add_library(ganalytics STATIC ${ganalytics_SOURCES})
qt5_use_modules(ganalytics Core Gui Network)
target_include_directories(ganalytics PUBLIC include)