2016-11-20 11:04:29 +00:00
|
|
|
project(ganalytics)
|
|
|
|
|
|
|
|
find_package(Qt5Core)
|
|
|
|
find_package(Qt5Gui)
|
|
|
|
find_package(Qt5Network)
|
|
|
|
|
2016-11-20 11:32:27 +00:00
|
|
|
set(ganalytics_SOURCES
|
|
|
|
src/ganalytics.cpp
|
|
|
|
src/ganalytics_worker.cpp
|
|
|
|
src/ganalytics_worker.h
|
2016-11-22 01:02:49 +00:00
|
|
|
include/sys.h
|
2016-11-20 11:32:27 +00:00
|
|
|
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})
|
2016-11-20 11:04:29 +00:00
|
|
|
qt5_use_modules(ganalytics Core Gui Network)
|
2016-11-20 11:32:27 +00:00
|
|
|
target_include_directories(ganalytics PUBLIC include)
|