This repository has been archived by the owner on May 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
69 lines (56 loc) · 2.08 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#-----------------------------------------------------------------------------
cmake_minimum_required(VERSION 2.8.7)
#-----------------------------------------------------------------------------
set(MODULE_NAME "TargetFiducials") # Do not use 'project()'
set(MODULE_TITLE "Target Fiducials")
string(TOUPPER ${MODULE_NAME} MODULE_NAME_UPPER)
#-----------------------------------------------------------------------------
if ( NOT DEFINED ${EXTENSION_NAME}_SUPERBUILD )
find_package(Slicer REQUIRED)
include(${Slicer_USE_FILE})
endif()
#-----------------------------------------------------------------------------
add_subdirectory(Logic)
#-----------------------------------------------------------------------------
set(MODULE_EXPORT_DIRECTIVE "Q_SLICER_QTMODULES_${MODULE_NAME_UPPER}_EXPORT")
# Additional includes - Current_{source,binary} and Slicer_{Libs,Base} already included
set(MODULE_INCLUDE_DIRECTORIES
${CMAKE_CURRENT_SOURCE_DIR}/Logic
${CMAKE_CURRENT_BINARY_DIR}/Logic
)
set(MODULE_SRCS
qSlicerTargetFiducialsModule.cxx
qSlicerTargetFiducialsModule.h
qSlicerTargetFiducialsModuleWidget.cxx
qSlicerTargetFiducialsModuleWidget.h
)
set(MODULE_MOC_SRCS
qSlicerTargetFiducialsModule.h
qSlicerTargetFiducialsModuleWidget.h
)
set(MODULE_UI_SRCS
Resources/UI/qSlicerTargetFiducialsModule.ui
)
set(MODULE_TARGET_LIBRARIES
vtkSlicerTargetFiducialsModuleLogic
vtkSlicerAnnotationsModuleMRML
)
set(MODULE_RESOURCES
Resources/qSlicerTargetFiducialsModule.qrc
)
#-----------------------------------------------------------------------------
slicerMacroBuildQtModule(
NAME ${MODULE_NAME}
TITLE ${MODULE_TITLE}
EXPORT_DIRECTIVE ${MODULE_EXPORT_DIRECTIVE}
INCLUDE_DIRECTORIES ${MODULE_INCLUDE_DIRECTORIES}
SRCS ${MODULE_SRCS}
MOC_SRCS ${MODULE_MOC_SRCS}
UI_SRCS ${MODULE_UI_SRCS}
TARGET_LIBRARIES ${MODULE_TARGET_LIBRARIES}
RESOURCES ${MODULE_RESOURCES}
)
#-----------------------------------------------------------------------------
if(BUILD_TESTING)
add_subdirectory(Testing)
endif()