-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
56 lines (47 loc) · 995 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
55
56
cmake_minimum_required(VERSION 3.16)
project(screen-spaced-fluid-rendering)
set(CMAKE_CXX_STANDARD 17)
list(APPEND CXX_FLAGS "-stdlib=libc++")
find_package(OpenGL REQUIRED)
find_package(GLEW REQUIRED)
find_package(glfw3 REQUIRED)
find_package(DevIL REQUIRED)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/include/config.h.in
${CMAKE_BINARY_DIR}/include/config.h)
set(FILES
Box.cpp
FirstPersonCamera.cpp
FluidParticleSystem.cpp
Model.cpp
OrbitCamera.cpp
Plane.cpp
SkyBox.cpp
main.cpp
textfile.cpp
)
foreach(f ${FILES})
list(APPEND SOURCES "src/${f}")
endforeach()
add_executable(ssfr ${SOURCES})
target_include_directories(
ssfr
PUBLIC
${OPENGL_INCLUDE_DIRS}
${GLEW_INCLUDE_DIRS}
${IL_INCLUDE_DIR}
)
target_link_libraries(
ssfr
${OPENGL_LIBRARIES}
/usr/local/lib/libGLEW.a
glfw
/usr/local/lib/libassimp.dylib
${IL_LIBRARIES}
)
target_include_directories(
ssfr
PUBLIC
"${CMAKE_CURRENT_SOURCE_DIR}/include"
${CMAKE_BINARY_DIR}/include
)