-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
52 lines (39 loc) · 1.91 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
cmake_minimum_required(VERSION 3.5.0)
#-----------------------------------------------------------------------------
set(EXTENSION_NAME SlicerPIRADS)
set(EXTENSION_HOMEPAGE "http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Modules/QuantitativeReporting")
set(EXTENSION_CATEGORY "Informatics")
set(EXTENSION_CONTRIBUTORS "Andrey Fedorov (SPL), Christian Herz (SPL)")
set(EXTENSION_DESCRIPTION "Support of PI-RADS Reporting")
set(EXTENSION_STATUS "Work in progress")
set(EXTENSION_DEPENDS SlicerDevelopmentToolbox)
#-----------------------------------------------------------------------------
set(MODULE_NAME SlicerPIRADS)
find_package(Slicer REQUIRED)
include(${Slicer_USE_FILE})
find_package(SlicerDevelopmentToolbox REQUIRED)
set(DEPENDENCY_BUILD_DIRS "")
if(CMAKE_CONFIGURATION_TYPES)
foreach(config ${CMAKE_CONFIGURATION_TYPES})
list(APPEND DEPENDENCY_BUILD_DIRS "${SlicerDevelopmentToolbox_DIR}/${Slicer_QTLOADABLEMODULES_LIB_DIR}/${config}")
list(APPEND DEPENDENCY_BUILD_DIRS "${SlicerDevelopmentToolbox_DIR}/${Slicer_CLIMODULES_LIB_DIR}/${config}")
endforeach()
else()
set(DEPENDENCY_BUILD_DIRS "${SlicerDevelopmentToolbox_DIR}/${Slicer_QTLOADABLEMODULES_LIB_DIR}")
set(DEPENDENCY_BUILD_DIRS "${SlicerDevelopmentToolbox_DIR}/${Slicer_CLIMODULES_LIB_DIR}")
endif()
# message("DEPENDENCY_BUILD_DIRS: ${DEPENDENCY_BUILD_DIRS}")
set(DEPENDENCIES_ADDITIONAL_MODULE_PATHS
${DEPENDENCY_BUILD_DIRS}
${SlicerDevelopmentToolbox_DIR}/${Slicer_QTSCRIPTEDMODULES_LIB_DIR}
)
#-----------------------------------------------------------------------------
add_subdirectory(DICOMPlugins)
add_subdirectory(SlicerPIRADS)
#-----------------------------------------------------------------------------
if(BUILD_TESTING)
add_subdirectory(Testing)
endif()
#-----------------------------------------------------------------------------
include(${Slicer_EXTENSION_GENERATE_CONFIG})
include(${Slicer_EXTENSION_CPACK})