-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
70 lines (59 loc) · 1.24 KB
/
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
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
64
65
66
67
68
69
70
cmake_minimum_required(VERSION 2.8)
IF(COMMAND CMAKE_POLICY)
CMAKE_POLICY(SET CMP0003 NEW)
ENDIF(COMMAND CMAKE_POLICY)
project(Vessel_Project)
# MSUT find vtk first
#VTK
find_package(VTK REQUIRED)
if (NOT VTK_FOUND)
message(FATAL_ERROR "error: VTK is not found")
endif()
include(${VTK_USE_FILE})
#ITK
find_package(ITK REQUIRED)
if (NOT ITK_FOUND)
message(FATAL_ERROR "error: ITK is not found")
endif()
include(${ITK_USE_FILE})
#VMTK
find_package(VMTK REQUIRED)
if (NOT VMTK_FOUND)
message(FATAL_ERROR "error: VMTK is not found")
endif()
include(${VMTK_USE_FILE})
#QT5
find_package(Qt5Core)
find_package(Qt5Widgets)
# multi-processor build
set(
CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} /MP"
)
set(
CMAKE_ARCHIVE_OUTPUT_DIRECTORY
${CMAKE_SOURCE_DIR}/lib
)
set(
CMAKE_LIBRARY_OUTPUT_DIRECTORY
${CMAKE_SOURCE_DIR}/lib
)
set(
CMAKE_RUNTIME_OUTPUT_DIRECTORY
${CMAKE_SOURCE_DIR}/bin
)
set(
MAIN_LINK_DIRECTORIES
${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}
${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
)
link_directories(
${MAIN_LINK_DIRECTORIES}
)
add_subdirectory(codes/Main)
add_subdirectory(codes/View)
add_subdirectory(codes/Core)
add_subdirectory(codes/Controller)
add_subdirectory(codes/Model)
add_subdirectory(codes/Widgets)
add_subdirectory(codes/Algorithm)