-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·58 lines (43 loc) · 1.3 KB
/
CMakeLists.txt
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
cmake_minimum_required(VERSION 3.16...3.24)
project(
AnalyzeGPX
VERSION 0.1
DESCRIPTION "Analyze Garmin GPX files stored in a Garmin folder"
LANGUAGES CXX)
set(CMAKE_INSTALL_PREFIX ${PROJECT_BINARY_DIR})
# Show QtCreator non build files
add_custom_target(info SOURCES README.md TODO.txt DeployWin.bat)
# ##############################################################################
# Some helper functions
# print all the arguments given
function(print)
foreach(var ${ARGN})
message("${var} = ${${var}}")
endforeach()
endfunction()
# print environment
function(print_env)
foreach(var ${ARGN})
message("${var} = $ENV{${var}}")
endforeach()
endfunction()
# ##############################################################################
# build related commands
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Resources
set(APP_RESOUCRE_DIR "${PROJECT_SOURCE_DIR}/resources")
add_subdirectory(resources)
# add general utilities
set(LICENSES_LIB licenses)
add_subdirectory(utils)
# Garmin GPX & Drive Location libs:
add_subdirectory(libs/garmin)
# Drive / Volume info
add_subdirectory(libs/volumeInfo)
# Gui - QtWidgets
add_subdirectory(apps/Widgets)
# Gui - QML add_subdirectory(apps/QML)
# Sources for the the models
add_subdirectory(models)