-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
89 lines (73 loc) · 2.95 KB
/
CMakeLists.txt
File metadata and controls
89 lines (73 loc) · 2.95 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# - itomproject software -
# URL: http://www.uni-stuttgart.de/ito
# Copyright (C) 2022, Institut fuer Technische Optik (ITO),
# Universitaet Stuttgart, Germany
#
# itomproject is free software; you can redistribute it and/or modify it
# under the terms of the GNU Library General Public Licence as published by
# the Free Software Foundation; either version 2 of the Licence, or (at
# your option) any later version.
#
# itomproject is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
# General Public Licence for more details.
#
# You should have received a copy of the GNU Library General Public License
# along with multipoint. If not, see <http://www.gnu.org/licenses/>.
cmake_minimum_required(VERSION 3.12...3.29)
message(
STATUS "------------------- PROJECT ItomProject ---------------------")
# Retrieve Version Number and Identifier from GIT-TAG
include(itom/cmake/VersionFromGit.cmake)
version_from_git(
LOG ON
TIMESTAMP "%Y%m%d%H%M%S"
)
# define cmake project and version number
project(itomproject VERSION ${GIT_VERSION})
message(
STATUS "------------------- Version = ${itomproject_VERSION} -----------------------\n")
if(BUILD_QTVERSION STREQUAL "Qt6")
set(CMAKE_CXX_STANDARD 17)
elseif(BUILD_QTVERSION STREQUAL "Qt5")
set(CMAKE_CXX_STANDARD 11)
endif(BUILD_QTVERSION STREQUAL "Qt6")
set(CMAKE_CXX_STANDARD_REQUIRED ON)
message(STATUS "CMAKE_CXX_STANDARD: ${CMAKE_CXX_STANDARD}")
option(ENABLE_ITOM_EXTERNAL "Enable the the itom external dependencies." OFF)
option(BUILD_ITOM_EXTERNAL "Build with the itom external dependencies." OFF)
list(APPEND CMAKE_MODULE_PATH
"${CMAKE_CURRENT_LIST_DIR}/cmake"
"${CMAKE_CURRENT_LIST_DIR}/external"
"${CMAKE_CURRENT_LIST_DIR}/external/cmake"
"${CMAKE_CURRENT_LIST_DIR}/external/cmake/modules"
"${CMAKE_SOURCE_DIR}/cmake/modules/")
if(ENABLE_ITOM_EXTERNAL)
if(BUILD_ITOM_EXTERNAL)
include(external_setup)
if(NOT EXTERNAL_FLAG_BUILD_COMPLETE)
return()
endif(NOT EXTERNAL_FLAG_BUILD_COMPLETE)
else(BUILD_ITOM_EXTERNAL)
include(external_versions)
include(external_components)
include(external_find_packages)
endif(BUILD_ITOM_EXTERNAL)
endif(ENABLE_ITOM_EXTERNAL)
option(BUILD_ITOM_CORE "Build the itom core library and executables." ON)
if(BUILD_ITOM_CORE )
add_subdirectory(itom)
endif(BUILD_ITOM_CORE )
option(BUILD_ITOM_DESIGNERPLUGINS "Build the itom Designerplugins." ON)
if(BUILD_ITOM_DESIGNERPLUGINS )
add_subdirectory(designerplugins)
endif(BUILD_ITOM_DESIGNERPLUGINS)
option(BUILD_ITOM_PLUGINS "Build the itom plugins." ON)
if(BUILD_ITOM_PLUGINS )
add_subdirectory(plugins)
endif(BUILD_ITOM_PLUGINS)
option(BUILD_ITOM_PRIVATEPLUGINS "Build the itom private plugins." OFF)
if(BUILD_ITOM_PRIVATEPLUGINS )
add_subdirectory(ITOM_PrivatePlugins)
endif(BUILD_ITOM_PRIVATEPLUGINS)