-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
52 lines (42 loc) · 1.52 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
50
51
52
cmake_minimum_required(VERSION 3.12)
project(bc6h-integrator)
include(cmake/CPM.cmake)
include(cmake/shaders.cmake)
set(CMAKE_CXX_STANDARD 20)
set(CXX_STANDARD_REQUIRED ON)
# There is currently an issue with the comparison operators in nlohmann json
# https://github.com/nlohmann/json/issues/3868
# https://github.com/nlohmann/json/issues/3979
add_compile_definitions(JSON_HAS_THREE_WAY_COMPARISON=0)
# shaderc defaults to the static runtime on MSVC
if (MSVC)
set(SHADERC_ENABLE_SHARED_CRT ON)
endif (MVSC)
CPMAddPackage("gh:liblava/liblava#0.7.3")
CPMAddPackage("gh:soehrl/cpp-sync#feature/rename-namespace")
CPMAddPackage(NAME colormap GIT_REPOSITORY https://github.com/kbinani/colormap-shaders GIT_TAG master DOWNLOAD_ONLY YES)
add_executable(
bc6h-integrator
src/main.cpp
src/application.hpp src/application.cpp
src/command_parser.hpp src/command_parser.cpp
src/dataset.hpp src/dataset.cpp
src/integrator.hpp src/integrator.cpp
src/data_source.hpp src/data_source.cpp
src/dataset_view.hpp src/dataset_view.cpp
src/integration.glsl src/integrate_raw.comp src/integrate_bc6h.comp src/integrate_analytic.comp
src/dataset_view.vert src/dataset_view.frag
src/lines.vert src/lines.frag
src/seeding.comp
src/analytic_vector_field.glsl
)
target_compile_definitions(
bc6h-integrator
PRIVATE NOMINMAX
)
target_link_libraries(
bc6h-integrator
PRIVATE lava::engine shaderc sync::sync
)
set(shader_extern_directories ${colormap_SOURCE_DIR}/shaders/glsl)
compile_shaders(bc6h-integrator ${shader_extern_directories})