@@ -12,17 +12,20 @@ cmake_policy(SET CMP0063 NEW)
12
12
cmake_policy (SET CMP0057 NEW)
13
13
# Use new policy to use CMAKE_CXX_STANDARD in try_compile() macro
14
14
cmake_policy (SET CMP0067 NEW)
15
- # Use old policy for Documentation to add cache variables and find VTK documentation dependent packages.
16
- # (Needed for doxygen..)
17
- cmake_policy (SET CMP0106 OLD)
18
15
# Use new policy for CMAKE_MSVC_DEBUG_INFORMATION_FORMAT
19
16
cmake_policy (SET CMP0141 NEW)
20
- # Use old policy for now because of openCV
21
- cmake_policy (SET CMP0146 OLD)
22
17
23
- if (${CMAKE_VERSION} VERSION_GREATER "3.25.0" )
24
- # Transform the ``DEPFILE`` after running the custom command for Ninja generator.
25
- cmake_policy (SET CMP0116 OLD)
18
+ if (${CMAKE_VERSION} VERSION_GREATER "3.31.0" )
19
+ # Use new policy for removed FindBoost module
20
+ cmake_policy (SET CMP0167 NEW)
21
+ # Use new policy for empty string variable after a single-value keyword
22
+ cmake_policy (SET CMP0174 NEW)
23
+ # Use new policy for normalized install() DESTINATION paths
24
+ cmake_policy (SET CMP0177 NEW)
25
+ else ()
26
+ # Use old policy for Documentation to add cache variables and find VTK documentation dependent packages.
27
+ # (Needed for doxygen..)
28
+ cmake_policy (SET CMP0106 OLD)
26
29
endif ()
27
30
28
31
# On Windows, if the user doesn't specify a value,
@@ -44,7 +47,7 @@ endif()
44
47
45
48
project (
46
49
sight
47
- VERSION 24 .0.0
50
+ VERSION 25 .0.0
48
51
DESCRIPTION "Surgical Image Guidance and Healthcare Toolkit"
49
52
HOMEPAGE_URL "https://git.ircad.fr/sight/sight"
50
53
)
@@ -69,8 +72,14 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/build/flags.cmake)
69
72
include (${CMAKE_CURRENT_SOURCE_DIR} /cmake/build /macros .cmake)
70
73
list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR} /cmake/build /linux/modules)
71
74
75
+ # We need to find Qt6 before ITK/VTK, otherwise they find Qt5 and CMake fails with a cryptic
76
+ # "Targets not yet defined: Qt::XXXXPrivate", even if we don't use ITK-Qt or VTK-Qt extensions
77
+ if (UNIX )
78
+ find_package (Qt6 CONFIG QUIET COMPONENTS Core Gui Widgets OpenGL)
79
+ endif ()
80
+
72
81
# We find VTK to know its version so we can enable PCL or not
73
- find_package (VTK CONFIG QUIET REQUIRED )
82
+ find_package (VTK CONFIG QUIET )
74
83
75
84
########################################################################################################################
76
85
# User options
@@ -109,10 +118,6 @@ if(SIGHT_ENABLE_CLANG_TIDY)
109
118
set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
110
119
endif ()
111
120
112
- # QML_IMPORT_PATH allows qtCreator to find the qml modules created in our modules
113
- set (QML_IMPORT_PATH "" CACHE STRING "Path of the Qml modules." FORCE)
114
- mark_as_advanced (QML_IMPORT_PATH)
115
-
116
121
if (CMAKE_CONFIGURATION_TYPES )
117
122
set (CMAKE_CONFIGURATION_TYPES ${CMAKE_BUILD_TYPE} CACHE STRING "List of supported configurations." FORCE)
118
123
endif ()
@@ -210,14 +215,16 @@ sight_configure_pch()
210
215
211
216
add_subdirectory (libs)
212
217
add_subdirectory (modules)
213
- add_subdirectory (configs)
214
218
add_subdirectory (activities)
219
+ add_subdirectory (configs)
215
220
add_subdirectory (utils)
216
221
add_subdirectory (apps)
222
+
217
223
if (SIGHT_BUILD_EXAMPLES)
218
224
add_subdirectory (tutorials)
219
225
add_subdirectory (examples)
220
226
endif ()
227
+
221
228
add_subdirectory (3rd-party)
222
229
223
230
########################################################################################################################
0 commit comments