-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
63 lines (51 loc) · 1.45 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
# Module name (usually identique to the directory name)
set(qt_module_name "OCTReader")
set(qt_module_title "OCTReader")
# Build module sub libraries
add_subdirectory(Logic)
set(qt_module_export_directive "Q_SLICER_QTMODULES_OCTREADER_EXPORT")
# Additional includes - Current_{source,binary} and Slicer_{Libs,Base} already included
set(qt_module_include_directories
${CMAKE_CURRENT_SOURCE_DIR}/Widgets
${CMAKE_CURRENT_BINARY_DIR}/Widgets
${CMAKE_CURRENT_SOURCE_DIR}/Logic
${CMAKE_CURRENT_BINARY_DIR}/Logic
)
# Source files
set(qt_module_SRCS
qSlicerOCTReaderModule.cxx
qSlicerOCTReaderModule.h
qSlicerOCTReaderModuleWidget.cxx
qSlicerOCTReaderModuleWidget.h
)
# Headers that should run through moc
set(qt_module_MOC_SRCS
qSlicerOCTReaderModule.h
qSlicerOCTReaderModuleWidget.h
)
# UI files
set(qt_module_UI_SRCS
Resources/UI/qSlicerOCTReaderModule.ui
)
# Additional Target libraries
set(qt_module_target_libraries
vtkSlicerOCTReaderModuleLogic
)
# Resources
set(qt_module_resources
Resources/qSlicerOCTReaderModule.qrc
)
slicerMacroBuildQtModule(
NAME ${qt_module_name}
TITLE ${qt_module_title}
EXPORT_DIRECTIVE ${qt_module_export_directive}
INCLUDE_DIRECTORIES ${qt_module_include_directories}
SRCS ${qt_module_SRCS}
MOC_SRCS ${qt_module_MOC_SRCS}
UI_SRCS ${qt_module_UI_SRCS}
TARGET_LIBRARIES ${qt_module_target_libraries}
RESOURCES ${qt_module_resources}
)
if(BUILD_TESTING)
add_subdirectory(Testing)
endif()