-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
49 lines (42 loc) · 1.95 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
cmake_minimum_required(VERSION 3.1)
project(madid)
set(CMAKE_CXX_STANDARD 17)
#set(CMAKE_CXX_FLAGS "-Wall -Wextra -Werror -pedantic")
set(CMAKE_CXX_FLAGS "-Wall -Wextra -pedantic")
set(LDFLAGS, "-F/System/Library/PrivateFrameWorks -framework Apple80211")
# set(CMAKE_CXX_COMPILER "/usr/bin/g++")
add_executable(${PROJECT_NAME}
src/main.cpp
src/utils/math.h src/utils/math.cpp
src/utils/util.h src/utils/util.cpp
src/geometries/PBDSimulation.h src/geometries/PBDSimulation.cpp
src/rendering/Camera.h src/rendering/Camera.cpp
src/objects/Object.h src/objects/Object.cpp
src/rendering/Scene.cpp
src/rendering/shaders/Shader.cpp
src/utils/InputHandler.cpp
src/geometries/Geometry.cpp
src/objects/PBDSimulationObject.cpp
src/objects/HeadObject.cpp
src/rendering/shaders/BasicShader.cpp src/rendering/shaders/BasicShader.h
src/rendering/shaders/PhongShader.cpp src/rendering/shaders/PhongShader.h
src/geometries/ParamSurface.cpp src/geometries/ParamSurface.h
src/geometries/VertexData.h src/rendering/materials/Material.cpp src/rendering/materials/Material.h src/rendering/textures/Texture.cpp src/rendering/textures/Texture.h src/rendering/lights/Light.cpp src/rendering/lights/Light.h src/geometries/VertexData.cpp src/utils/OBJReader.cpp src/utils/OBJReader.h src/geometries/ObjGeometry.cpp src/geometries/ObjGeometry.h
src/geometries/SPHSimulation.cpp src/geometries/SPHSimulation.h
src/objects/SPHSimulationObject.cpp src/objects/SPHSimulationObject.h)
# opengl
find_package(OpenGL REQUIRED)
include_directories(${OPENGL_INCLUDE_DIRS})
# glfw
find_package(glfw3 REQUIRED)
include_directories(${GLFW_INCLUDE_DIRS})
link_libraries(${GLFW_LIBRARY_DIRS})
# glew
find_package(GLEW REQUIRED)
include_directories(${GLEW_INCLUDE_DIRS})
target_link_libraries(
${PROJECT_NAME}
glfw
${OPENGL_LIBRARIES}
${GLEW_LIBRARIES}
)