-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathCMakeLists.txt
44 lines (35 loc) · 997 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
cmake_minimum_required(VERSION 3.10)
project(Fluid3D)
##### Setup ######
set(CMAKE_CXX_STANDARD 98)
##### External Libraries ######
find_package(OpenGL)
find_package(GLUT)
###### Header Files ######
include_directories(
./
${GLU_INCLUDES}
)
##### Executables #####
# To avoid naming conflicts (can't have a "viewpls3D" directory AND file in
# the same directory) output all the executables to their own folder
set(EXECUTABLE_OUTPUT_PATH "bin")
## Solver ##
# Find all the source (.cpp, .c) files in the current directory
aux_source_directory(. SOLVER_SRC)
# Build the executable
add_executable(solver
${SOLVER_SRC}
)
## viewpls3D ##
# Find all the source (.cpp, .c) files in the current directory
aux_source_directory(./viewpls3D VIEW_PLS_3D_SRC)
# Build the executable
add_executable(viewpls3D
${VIEW_PLS_3D_SRC}
)
# Link the executable to external libraries
target_link_libraries(viewpls3D
${OPENGL_LIBRARIES}
${GLUT_LIBRARIES}
)