forked from daviddoria/ConnectTheDots
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
28 lines (19 loc) · 931 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
cmake_minimum_required(VERSION 2.6)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
PROJECT(ConnectTheDots)
FIND_PACKAGE(VTK REQUIRED)
INCLUDE(${VTK_USE_FILE})
FIND_PACKAGE(Qt4 REQUIRED)
INCLUDE(${QT_USE_FILE})
SET (LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin CACHE INTERNAL "Single output directory for building all libraries.")
SET (EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin CACHE INTERNAL "Single output directory for building all executables.")
include(${PROJECT_SOURCE_DIR}/CMake/GetRuntime.cmake)
include(${PROJECT_SOURCE_DIR}/CMake/GetQtRuntime.cmake)
include(${PROJECT_SOURCE_DIR}/CMake/VLDSupport.cmake)
QT4_WRAP_UI(UISrcs Form.ui)
QT4_WRAP_CPP(MOCSrcs Form.h)
ADD_EXECUTABLE(ConnectTheDots ConnectTheDots.cpp Form.cxx InteractorStyle.cxx
${UISrcs} ${MOCSrcs} ${ResourceSrcs})
TARGET_LINK_LIBRARIES(ConnectTheDots QVTK ${VTK_LIBRARIES}
${ITK_LIBRARIES})