-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
45 lines (39 loc) · 2.2 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
cmake_minimum_required(VERSION 3.16.3...3.19.7 FATAL_ERROR)
project(PETLiverUptakeMeasurement)
set(MODULE_NAME PETLiverUptakeMeasurement)
#-----------------------------------------------------------------------------
# Extension meta-information
set(EXTENSION_HOMEPAGE "https://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Extensions/PETLiverUptakeMeasurement")
set(EXTENSION_CATEGORY "Quantification")
set(EXTENSION_CONTRIBUTORS "Christian Bauer (University of Iowa), Markus van Tol (University of Iowa), Andrey Fedorov (SPL), Ethan Ulrich (University of Iowa), Reinhard Beichel (University of Iowa), John Buatti (University of Iowa)")
set(EXTENSION_DESCRIPTION "This extensions contains a module for automated measurement of liver uptake in whole-body FDG-18 PET scans.")
set(EXTENSION_ICONURL "https://raw.githubusercontent.com/QIICR/PETLiverUptakeMeasurement/master/PETLiverUptakeMeasurement.png")
set(EXTENSION_SCREENSHOTURLS "https://www.slicer.org/slicerWiki/images/6/6d/PETLiverUptakeMeasurementWithModel.png")
set(EXTENSION_DEPENDS "DCMQI")
#-----------------------------------------------------------------------------
# Extension dependencies
find_package(Slicer REQUIRED)
include(${Slicer_USE_FILE})
#find_package(DCMQI REQUIRED)
if(CMAKE_CONFIGURATION_TYPES)
set(DEPENDENCIES_ADDITIONAL_MODULE_PATHS "")
foreach(config ${CMAKE_CONFIGURATION_TYPES})
list(APPEND DEPENDENCIES_ADDITIONAL_MODULE_PATHS "${CMAKE_BINARY_DIR}/${Slicer_CLIMODULES_LIB_DIR}/${config}")
list(APPEND DEPENDENCIES_ADDITIONAL_MODULE_PATHS "${DCMQI_DIR}/bin/${config}")
list(APPEND DEPENDENCIES_ADDITIONAL_MODULE_PATHS "${DCMQI_DIR}/${Slicer_CLIMODULES_LIB_DIR}/${config}")
endforeach()
else()
set(DEPENDENCIES_ADDITIONAL_MODULE_PATHS
${CMAKE_BINARY_DIR}/${Slicer_CLIMODULES_LIB_DIR}
${DCMQI_DIR}/bin
${DCMQI_DIR}/${Slicer_CLIMODULES_LIB_DIR}
)
endif()
#-----------------------------------------------------------------------------
# Extension modules
add_subdirectory(PETLiverUptakeMeasurement)
add_subdirectory(PETLiverUptakeMeasurementQR)
## NEXT_MODULE
#-----------------------------------------------------------------------------
include(${Slicer_EXTENSION_GENERATE_CONFIG})
include(${Slicer_EXTENSION_CPACK})