-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
58 lines (48 loc) · 1.66 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
53
54
55
56
57
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
set(VCPKG_OVERLAY_PORTS "${CMAKE_SOURCE_DIR}/overlays" CACHE INTERNAL "")
project(ffmpeg_node_editor LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE INTERNAL "")
find_package(absl CONFIG REQUIRED)
find_package(glfw3 REQUIRED)
find_package(imgui CONFIG REQUIRED)
find_package(nlohmann_json CONFIG REQUIRED)
find_package(OpenGL REQUIRED)
find_package(re2 CONFIG REQUIRED)
find_package(spdlog CONFIG REQUIRED)
find_package(tiny-process-library CONFIG REQUIRED)
find_package(unofficial-imgui-node-editor CONFIG REQUIRED)
find_package(unofficial-nativefiledialog CONFIG REQUIRED)
add_executable(ffmpeg_node_editor
src/backend.cpp
src/ffmpeg/filter_graph.cpp
src/ffmpeg/profile.cpp
src/ffmpeg/runner.cpp
src/file_utils.cpp
src/imgui_extras.cpp
src/main.cpp
src/node_editor.cpp
src/pref.cpp
)
target_include_directories(ffmpeg_node_editor PUBLIC "${CMAKE_SOURCE_DIR}/include")
target_link_libraries(ffmpeg_node_editor PRIVATE
${OPENGL_gl_LIBRARY}
absl::strings
glfw
imgui::imgui
nlohmann_json::nlohmann_json
re2::re2
spdlog::spdlog
tiny-process-library::tiny-process-library
unofficial::imgui-node-editor::imgui-node-editor
unofficial::nativefiledialog::nfd
)
# Setup Test, coverage and benchmarks
find_package(GTest CONFIG REQUIRED)
SET(TEST_SRCS
src/imgui_extras.cpp
src/imgui_extras_test.cpp
)
add_executable(tests ${TEST_SRCS})
target_include_directories(tests PUBLIC "${CMAKE_SOURCE_DIR}/include")
target_link_libraries(tests PRIVATE GTest::gtest GTest::gtest_main absl::strings imgui::imgui spdlog::spdlog)