-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
58 lines (46 loc) · 1.52 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
cmake_minimum_required(VERSION 3.5)
project(RigidAlignment)
#-----------------------------------------------------------------------------
set(MODULE_NAME RigidAlignment)
#-----------------------------------------------------------------------------
# MeshLib
find_package(MeshLib REQUIRED)
# SlicerExecutionModel
find_package(SlicerExecutionModel REQUIRED)
include(${SlicerExecutionModel_USE_FILE})
find_package(VTK REQUIRED)
include(${VTK_USE_FILE})
#-----------------------------------------------------------------------------
set(${MODULE_NAME}_CATEGORY "" CACHE STRING "Module category")
set(MODULE_CATEGORY_CONFIG "")
if(NOT "${${MODULE_NAME}_CATEGORY}" STREQUAL "")
set(MODULE_CATEGORY_CONFIG "<category>${${MODULE_NAME}_CATEGORY}</category>")
endif()
configure_file(
${MODULE_NAME}.xml.in
${CMAKE_CURRENT_BINARY_DIR}/${MODULE_NAME}.xml
@ONLY
)
#-----------------------------------------------------------------------------
set(MODULE_INCLUDE_DIRECTORIES
)
set(MODULE_SRCS
RigidAlignmentImpl.cpp
)
set(MODULE_TARGET_LIBRARIES
Mesh
${VTK_LIBRARIES}
)
#-----------------------------------------------------------------------------
SEMMacroBuildCLI(
NAME ${MODULE_NAME}
CLI_XML_FILE ${CMAKE_CURRENT_BINARY_DIR}/${MODULE_NAME}.xml
TARGET_LIBRARIES ${MODULE_TARGET_LIBRARIES}
INCLUDE_DIRECTORIES ${MODULE_INCLUDE_DIRECTORIES}
ADDITIONAL_SRCS ${MODULE_SRCS}
EXECUTABLE_ONLY
)
#-----------------------------------------------------------------------------
if(BUILD_TESTING)
# add_subdirectory(Testing)
endif()