File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 2.8 )
2-
3- if (POLICY CMP0048)
4- cmake_policy (SET CMP0048 NEW ) # CMake 3.0.0
5- endif ()
1+ cmake_minimum_required (VERSION 3.5 )
62
73set (MODULE_NAME "OpenIGTLinkIF" )
84set (MODULE_TITLE "OpenIGTLink I/F" )
95
106string (TOUPPER ${MODULE_NAME} MODULE_NAME_UPPER)
117
128#-----------------------------------------------------------------------------
13- find_package (Slicer REQUIRED )
14- include (${Slicer_USE_FILE} )
9+ if (Slicer_SOURCE_DIR )
10+ find_package (OpenIGTLink REQUIRED )
11+ include (${OpenIGTLink_USE_FILE} )
12+ else ()
13+ find_package (Slicer REQUIRED )
14+ include (${Slicer_USE_FILE} )
15+ endif ()
1516
1617# --------------------------------------------------------------------------
1718# Check if version 2 protocol is available
@@ -98,7 +99,6 @@ slicerMacroBuildQtModule(
9899 RESOURCES ${MODULE_RESOURCES}
99100 )
100101
101-
102102if (BUILD_TESTING)
103103 #add_subdirectory(Testing)
104104endif ()
You can’t perform that action at this time.
0 commit comments