-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
88 lines (69 loc) · 2.33 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# CMake entry point
cmake_minimum_required (VERSION 3.0)
project (SimpleFramework)
find_package(OpenGL REQUIRED)
if( CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR )
message( FATAL_ERROR "Please select another Build Directory ! (and give it a clever name, like bin_Visual2012_64bits/)" )
endif()
if( CMAKE_SOURCE_DIR MATCHES " " )
message( "Your Source Directory contains spaces. If you experience problems when compiling, this can be the cause." )
endif()
if( CMAKE_BINARY_DIR MATCHES " " )
message( "Your Build Directory contains spaces. If you experience problems when compiling, this can be the cause." )
endif()
#SET (ALL_AT_FRAMEWORK_SRC "" CACHE INTERNAL " ")
# Compile external dependencies
add_subdirectory (External)
add_subdirectory (Common)
# On Visual 2005 and above, this module can set the debug working directory
cmake_policy(SET CMP0026 OLD)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/external/rpavlik-cmake-modules-fe2273")
include(CreateLaunchers)
include(MSVCMultipleProcessCompile) # /MP
#if(INCLUDE_DISTRIB)
# add_subdirectory(distrib)
#endif(INCLUDE_DISTRIB)
include_directories(
External/AntTweakBar-1.16/include/
External/glfw-3.1.2/include/GLFW/
External/glm-0.9.7.1/
External/glew-1.13.0/include/
External/assimp-3.0.1270/include/
#external/bullet-2.81-rev2613/src/
External/
${ALL_AT_INCLUDE_DIRS}
)
set(ALL_LIBS
${OPENGL_LIBRARY}
glfw
GLEW_1130
)
add_definitions(
-DTW_STATIC
-DTW_NO_LIB_PRAGMA
-DTW_NO_DIRECT3D
-DGLEW_STATIC
-D_CRT_SECURE_NO_WARNINGS
)
MESSAGE( " ALL FILES : " ${CORE_SRCS})
SOURCE_GROUP(CORE FILES ${CORE_SRCS})
SOURCE_GROUP(GEOMETRY FILES ${GEOMETRY_SRCS} )
SOURCE_GROUP(LOADERS FILES ${LOADERS_SRCS} )
SOURCE_GROUP(RENDERERS FILES ${RENDERERS_SRCS} )
SOURCE_GROUP(UTILITIES FILES ${UTILITIES_SRCS} )
SOURCE_GROUP(UI FILES ${UI_SRCS} )
SOURCE_GROUP(WINDOWMGT FILES ${WINDOWMGT_SRCS} )
add_executable(SliceBasedVolumeRendering
SliceBasedVolumeRendering/Source/Source.cpp
${ALL_AT_FRAMEWORK_SRC}
)
target_link_libraries(SliceBasedVolumeRendering
${ALL_LIBS}
assimp
ANTTWEAKBAR_116_OGLCORE_GLFW
)
add_custom_command(TARGET SliceBasedVolumeRendering POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
${PROJECT_SOURCE_DIR}/Common/StandardShapes ${PROJECT_BINARY_DIR}/Common/StandardShapes
COMMENT "Copying standard shapes"
)