-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
33 lines (24 loc) · 879 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
cmake_minimum_required(VERSION 2.8)
PROJECT(Corals)
# Clang/llvm compiler
SET (CMAKE_CXX_COMPILER "/usr/bin/clang++")
SET (CMAKE_C_COMPILER "/usr/bin/clang")
# include UseVTK.cmake
find_package(VTK REQUIRED)
include(${VTK_USE_FILE})
#include UseQT4.cmake
find_package(Qt4 REQUIRED)
include(${QT_USE_FILE})
# Set source and header files here
SET(CoralsSourceFiles MainWindow.cpp volumeRendering.cpp histogramChart.cpp main.cpp)
SET(CoralHeaderFiles MainWindow.h volumeRendering.h histogramChart.h)
QT4_WRAP_CPP(MOCSrcs ${CoralHeaderFiles})
SOURCE_GROUP("Generated" FILES ${MOCSrcs})
#if(VTK_LIBRARIES)
# target_link_libraries(Corals ${VTK_LIBRARIES})
#else()
# target_link_libraries(Corals vtkHybrid )
#endif()
# executables and libraries
add_executable(Corals ${CoralsSourceFiles} ${MOCSrcs})
target_link_libraries(Corals ${QT_LIBRARIES} ${VTK_LIBRARIES} QVTK)