diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-11-20 12:32:27 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-11-21 01:19:22 +0100 |
commit | 2f8c752d1fe9976fdbd683d34ae3dcbf4e797591 (patch) | |
tree | 2b9fbba468b93accbf9affb07f9ea3b5f9938c66 /libraries/ganalytics/CMakeLists.txt | |
parent | 2ec15c32e4419c94995f78b1d1ef8790e71b3317 (diff) | |
download | MultiMC-2f8c752d1fe9976fdbd683d34ae3dcbf4e797591.tar MultiMC-2f8c752d1fe9976fdbd683d34ae3dcbf4e797591.tar.gz MultiMC-2f8c752d1fe9976fdbd683d34ae3dcbf4e797591.tar.lz MultiMC-2f8c752d1fe9976fdbd683d34ae3dcbf4e797591.tar.xz MultiMC-2f8c752d1fe9976fdbd683d34ae3dcbf4e797591.zip |
NOISSUE reformat and sanitize ganalytics
Diffstat (limited to 'libraries/ganalytics/CMakeLists.txt')
-rw-r--r-- | libraries/ganalytics/CMakeLists.txt | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/libraries/ganalytics/CMakeLists.txt b/libraries/ganalytics/CMakeLists.txt index f6051d05..4b9a0cee 100644 --- a/libraries/ganalytics/CMakeLists.txt +++ b/libraries/ganalytics/CMakeLists.txt @@ -4,7 +4,24 @@ find_package(Qt5Core) find_package(Qt5Gui) find_package(Qt5Network) -add_library(ganalytics STATIC ganalytics.cpp ganalytics.h) +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 ${CMAKE_CURRENT_SOURCE_DIR}) -target_compile_definitions(ganalytics PRIVATE -DQT_GUI_LIB) +target_include_directories(ganalytics PUBLIC include) |