-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSlicerJointRicianAnisotropicLMMSEFilter.cmake
66 lines (54 loc) · 2.9 KB
/
SlicerJointRicianAnisotropicLMMSEFilter.cmake
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
include(${CMAKE_CURRENT_LIST_DIR}/Common.cmake)
#-----------------------------------------------------------------------------
# Update CMake module path
#------------------------------------------------------------------------------
################################################################################
#-----------------------------------------------------------------------------
find_package(SlicerExecutionModel REQUIRED GenerateCLP)
include(${GenerateCLP_USE_FILE})
include(${SlicerExecutionModel_USE_FILE})
include(${SlicerExecutionModel_CMAKE_DIR}/SEMMacroBuildCLI.cmake)
#-----------------------------------------------------------------------------
find_package(ITK REQUIRED)
if(Slicer_BUILD_BRAINSTOOLS)
set(ITK_NO_IO_FACTORY_REGISTER_MANAGER 1)
endif()
include(${ITK_USE_FILE})
#-----------------------------------------------------------------------------
enable_testing()
include(CTest)
# For Slicer 4 builds, simply call the standard macro:
if(Slicer_BINARY_DIR) # This variable exits only for Slicer4
SEMMacroBuildCLI(
NAME ${PROJECT_NAME}
LOGO_HEADER ${PROJECT_SOURCE_DIR}/ModuleLogo.h
TARGET_LIBRARIES ${ITK_LIBRARIES} ModuleDescriptionParser
LINK_DIRECTORIES ${ModuleDescriptionParser_BINARY_DIR}
INCLUDE_DIRECTORIES ${SlicerBaseCLI_SOURCE_DIR} ${SlicerBaseCLI_BINARY_DIR}
EXECUTABLE_ONLY
RUNTIME_OUTPUT_DIRECTORY ${${CMAKE_PROJECT_NAME}_CLI_RUNTIME_OUTPUT_DIRECTORY}
LIBRARY_OUTPUT_DIRECTORY ${${CMAKE_PROJECT_NAME}_CLI_LIBRARY_OUTPUT_DIRECTORY}
ARCHIVE_OUTPUT_DIRECTORY ${${CMAKE_PROJECT_NAME}_CLI_ARCHIVE_OUTPUT_DIRECTORY}
INSTALL_RUNTIME_DESTINATION ${${CMAKE_PROJECT_NAME}_CLI_INSTALL_RUNTIME_DESTINATION}
INSTALL_LIBRARY_DESTINATION ${${CMAKE_PROJECT_NAME}_CLI_INSTALL_LIBRARY_DESTINATION}
INSTALL_ARCHIVE_DESTINATION ${${CMAKE_PROJECT_NAME}_CLI_INSTALL_ARCHIVE_DESTINATION}
)
else(Slicer_BINARY_DIR)
SEMMacroBuildCLI(
NAME ${PROJECT_NAME}
EXECUTABLE_ONLY
LOGO_HEADER ${PROJECT_SOURCE_DIR}/ModuleLogo.h
TARGET_LIBRARIES ${ITK_LIBRARIES} ModuleDescriptionParser
LINK_DIRECTORIES ${ModuleDescriptionParser_BINARY_DIR}
INCLUDE_DIRECTORIES ${SlicerBaseCLI_SOURCE_DIR} ${Slicer_SOURCE_DIR}/Applications/CLI/DiffusionApplications/DiffusionApplicationsCommon
RUNTIME_OUTPUT_DIRECTORY ${${CMAKE_PROJECT_NAME}_CLI_RUNTIME_OUTPUT_DIRECTORY}
LIBRARY_OUTPUT_DIRECTORY ${${CMAKE_PROJECT_NAME}_CLI_LIBRARY_OUTPUT_DIRECTORY}
ARCHIVE_OUTPUT_DIRECTORY ${${CMAKE_PROJECT_NAME}_CLI_ARCHIVE_OUTPUT_DIRECTORY}
INSTALL_RUNTIME_DESTINATION ${${CMAKE_PROJECT_NAME}_CLI_INSTALL_RUNTIME_DESTINATION}
INSTALL_LIBRARY_DESTINATION ${${CMAKE_PROJECT_NAME}_CLI_INSTALL_LIBRARY_DESTINATION}
INSTALL_ARCHIVE_DESTINATION ${${CMAKE_PROJECT_NAME}_CLI_INSTALL_ARCHIVE_DESTINATION}
)
endif(Slicer_BINARY_DIR)
if (BUILD_TESTING)
add_subdirectory(TestSuite)
endif (BUILD_TESTING)