NOISSUE fix up translation selection in settings and add OS/sys arch reporting
This commit is contained in:
@ -8,26 +8,10 @@ set(ganalytics_SOURCES
|
||||
src/ganalytics.cpp
|
||||
src/ganalytics_worker.cpp
|
||||
src/ganalytics_worker.h
|
||||
include/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)
|
||||
|
||||
include (UnitTest)
|
||||
add_unit_test(sys
|
||||
SOURCES src/sys_test.cpp
|
||||
LIBS ganalytics
|
||||
)
|
||||
target_link_libraries(ganalytics systeminfo)
|
||||
|
27
libraries/systeminfo/CMakeLists.txt
Normal file
27
libraries/systeminfo/CMakeLists.txt
Normal file
@ -0,0 +1,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
|
||||
)
|
Reference in New Issue
Block a user