forked from mjacquem/RodentThickness
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathRodentThickness.cmake
executable file
·59 lines (33 loc) · 1.46 KB
/
RodentThickness.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
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
set(MODULE_NAME ${EXTENSION_NAME}) # Do not use 'project()'
set(MODULE_TITLE ${MODULE_NAME})
include(${CMAKE_CURRENT_SOURCE_DIR}/Common.cmake)
FIND_PACKAGE(SlicerExecutionModel NO_MODULE REQUIRED)
INCLUDE(${SlicerExecutionModel_USE_FILE})
INCLUDE(${GenerateCLP_USE_FILE})
FIND_PACKAGE(BatchMake NO_MODULE REQUIRED)
IF(BatchMake_FOUND)
INCLUDE(${BatchMake_USE_FILE})
ELSE(BatchMake_FOUND)
MESSAGE(FATAL_ERROR "BatchMake not found. Please set BatchMake_DIR")
ENDIF(BatchMake_FOUND)
#-----------------------------------------------------------------------------
find_package(ITK ${ITK_VERSION_MAJOR} NO_MODULE REQUIRED)
include(${ITK_USE_FILE})
FIND_PACKAGE(VTK NO_MODULE REQUIRED)
INCLUDE (${VTK_USE_FILE})
FIND_PACKAGE(Qt4 REQUIRED) #/tools/devel/linux/Qt4/Qt4.8.1/Qt4.8.1_linux64/bin/qmake
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${QT_INCLUDE_DIR})
INCLUDE(${QT_USE_FILE})
ADD_DEFINITIONS(-DQT_GUI_LIBS -DQT_CORE_LIB -DQT3_SUPPORT)
#======================================================================================
include(ExternalProject)
include(SlicerMacroEmptyExternalProject)
include(SlicerMacroCheckExternalProjectDependency)
set( proj ${LOCAL_PROJECT_NAME} )
option(USE_SPHARM-PDM "Build SPHARM-PDM" ON)
if(USE_SPHARM-PDM)
set(${LOCAL_PROJECT_NAME}_DEPENDENCIES spharm-pdm)
endif()
#include(${CMAKE_CURRENT_SOURCE_DIR}/SetExternalProjectOptions.cmake)
add_subdirectory(Applications)