-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
35 lines (30 loc) · 1002 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
cmake_minimum_required(VERSION 3.16)
project(titan)
set(SOURCES
src/main.cpp
src/utils.cpp
src/editor/editor.cpp
src/gui/gui_layout.cpp
src/gui/render_util.cpp
src/gui/content/gui_content_file_browser.cpp
src/gui/content/gui_content_player.cpp
src/gui/content/gui_content_player_utils.cpp
src/gui/content/gui_content_properties.cpp
src/gui/content/gui_content_timeline.cpp
src/gui/content/gui_content_timer.cpp
src/gui/content/gui_content_render.cpp
src/gui/content/gui_content_medialibrary.cpp
src/gui/lib/cursors.cpp
src/gui/lib/icons.cpp
src/gui/lib/images.cpp
devs/project.cpp
lib/action.cpp
)
add_executable(file_embed tools/file_embed.cpp)
add_executable(icon_autogen tools/icon_autogen.cpp)
add_executable(titan ${SOURCES})
target_include_directories(titan PRIVATE src)
target_link_libraries(titan SDL2 png)
target_compile_options(titan PRIVATE -Wall -g -I src)
add_custom_command(COMMAND $<TARGET_FILE:file_embed>)
add_custom_command(COMMAND $<TARGET_FILE:icon_autogen>)