-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
29 lines (25 loc) · 750 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
29 lines (25 loc) · 750 Bytes
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
cmake_minimum_required( VERSION 3.10.0 )
project( sph-benchmark )
# external glfw
set( GLFW_BUILD_DOCS OFF CACHE INTERNAL "" )
set( GLFW_BUILD_TESTS OFF CACHE INTERNAL "" )
set( GLFW_BUILD_EXAMPLES OFF CACHE INTERNAL "" )
add_subdirectory( external/glfw )
# make sure we have OpenMP C++ support
find_package( OpenMP REQUIRED CXX )
# external includes
include_directories( SYSTEM "external/glm" )
include_directories( SYSTEM "external/glad/include" )
# application code
include_directories( "include" )
add_executable(
sph-benchmark
"src/main.cpp"
"external/glad/src/glad.c" )
target_compile_features(
sph-benchmark
PUBLIC cxx_std_11 )
target_link_libraries(
sph-benchmark
PRIVATE glfw
PRIVATE OpenMP::OpenMP_CXX )