-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
37 lines (23 loc) · 716 Bytes
/
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
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
IF(COMMAND CMAKE_POLICY)
CMAKE_POLICY(SET CMP0003 NEW)
ENDIF(COMMAND CMAKE_POLICY)
PROJECT(ITK_V3D_Plugins)
FIND_PACKAGE(ITK REQUIRED)
IF(ITK_FOUND)
INCLUDE(${ITK_USE_FILE})
ENDIF(ITK_FOUND)
FIND_PACKAGE(Qt4 REQUIRED)
INCLUDE( ${QT_USE_FILE} )
INCLUDE(CTest)
INCLUDE(CPack)
FIND_PATH(V3D_BINARY_DIR v3d)
SET(INSTALLATION_DIRECTORY ${V3D_BINARY_DIR}/plugins)
IF(NOT LIBRARY_OUTPUT_PATH)
SET (LIBRARY_OUTPUT_PATH
${ITK_V3D_Plugins_BINARY_DIR}/bin
CACHE INTERNAL "Output directory for the shared libraries.")
ENDIF(NOT LIBRARY_OUTPUT_PATH)
INCLUDE(${PROJECT_SOURCE_DIR}/CMake/PluginConfiguration.cmake)
ADD_SUBDIRECTORY(Source)
ADD_SUBDIRECTORY(Testing)