-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
55 lines (46 loc) · 964 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
cmake_minimum_required(VERSION 2.6)
project(MarchingCube)
set(CMAKE_CXX_FLAGS "-std=c++0x -fopenmp -O3")
set(SDL_BUILDING_LIBRARY true)
Find_Package(SDL REQUIRED)
include_directories(
/home/rem/glm/glm-0.9.3.4/
/home/rem/assimp-3.0/include
)
link_directories(
/home/rem/assimp-3.0/lib
)
set(source_files
src/main.cpp
src/MyGLWindow.cpp
src/MarchingCube.cpp
src/Utils/Chrono.cpp
src/Utils/PerlinNoise.cpp
src/GLRenderer/Utils.cpp
src/GLRenderer/Context.cpp
src/GLRenderer/Camera.cpp
src/GLRenderer/Texture.cpp
src/GLRenderer/Mesh.cpp
src/GLRenderer/Material.cpp
src/GLRenderer/Actor.cpp
src/GLRenderer/Entity.cpp
src/GLRenderer/Scene.cpp
src/GLRenderer/ShaderProgram.cpp
src/GLRenderer/ModelLoader.cpp
src/GLRenderer/Glut/WindowGlut.cpp
src/GLRenderer/SDL/WindowSDL.cpp
)
add_executable(
bin/marching_cube
${source_files}
)
target_link_libraries(
bin/marching_cube
glut
GLU
GLEW
${SDL_LIBRARY}
SDLmain
assimp
freeimageplus
)