[r5]: trunk / CMakeLists.txt Maximize Restore History

Download this file

CMakeLists.txt    87 lines (75 with data), 3.6 kB

 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_minimum_required(VERSION 2.8)
project(SuperShaper)
# Find OpenGL
find_package(OpenGL REQUIRED)
if (MSVC)
add_definitions ( -D_CRT_SECURE_NO_WARNINGS
-D_USE_MATH_DEFINES
-DNO_MINMAX
/bigobj
-DBOOST_ALL_NO_LIB
)
endif()
add_definitions ( -DOV_SUPERSHAPER_HIGH_RES_MESH
-DOV_SUPERSHAPER_EXPORT
-DGLEW_STATIC
)
# Built-in externals
include_directories ( externals/include
)
link_directories ( ${CMAKE_CURRENT_SOURCE_DIR}/externals/lib
)
add_executable ( SuperShaper
WIN32
shaders/Lighting.frag
shaders/Random.frag
shaders/TestScene.frag
shaders/TestScene.vert
kernels/Normals.cl
kernels/SuperShape.cl
gfx/SplashScreen.xpm
SuperShaperHelp.html
ov3DS.cpp ov3DS.hpp
ovOBJ.cpp ovOBJ.hpp
ovApp.cpp ovApp.hpp
ovFileDropTarget.cpp ovFileDropTarget.hpp
ovMainFrame.cpp ovMainFrame.hpp
ovPreferences.cpp ovPreferences.hpp
ovSettings.cpp ovSettings.hpp
ovSuperShape.cpp ovSuperShape.hpp
wxOpenGL3Window.cpp wxOpenGL3Window.hpp
ovLastError.cpp
ovError.hpp
ovMesh3.cpp ovMesh3.hpp
ovMesh3Generator.cpp ovMesh3Generator.hpp
ovOpenGL3.cpp ovOpenGL3.hpp
ovShader3.cpp ovShader3.hpp
ovShader3Loader.cpp ovShader3Loader.hpp
ovSplashScreen.cpp ovSplashScreen.hpp
ovSplashText.cpp ovSplashText.hpp
GLCapabilities.hpp
ovBuffer.hpp ovBuffer.inl
ovCLError.hpp
ovOpenCL.hpp ovOpenCL.ipp
typedefs3.hpp
)
if (MSVC)
set ( MSVC_LIBRARIES
comctl32
rpcrt4
debug libboost_date_time-vc90-mt-gd-1_46_1 optimized libboost_date_time-vc90-mt-1_46_1
debug libboost_filesystem-vc90-mt-gd-1_46_1 optimized libboost_filesystem-vc90-mt-1_46_1
debug libboost_system-vc90-mt-gd-1_46_1 optimized libboost_system-vc90-mt-1_46_1
)
endif()
target_link_libraries ( SuperShaper
debug wxmsw28d optimized wxmsw28
debug glew32sd optimized glew32s
OpenCL
debug wxpngd optimized wxpng
debug wxjpegd optimized wxjpeg
debug wxzlibd optimized wxzlib
debug lib3ds-d optimized lib3ds
${OPENGL_LIBRARIES}
${MSVC_LIBRARIES}
)