1 cmake_minimum_required(VERSION 3.1)
3 project(zinnia VERSION 0.1
5 set(CMAKE_CXX_STANDARD 17)
7 find_package(PkgConfig REQUIRED)
8 find_package(OpenGL REQUIRED)
9 pkg_check_modules(GTK3 REQUIRED gtk+-3.0)
10 pkg_search_module(GLFW REQUIRED glfw3)
12 include_directories(deps/imgui deps/imgui/examples/opengl3_example)
13 file(GLOB IMGUI_SOURCE
15 deps/imgui/imgui_draw.cpp
16 deps/imgui/imgui_demo.cpp
17 deps/imgui/examples/opengl3_example/imgui_impl_glfw_gl3.cpp)
19 include_directories(deps/gl3w/include)
20 add_library(gl3w deps/gl3w/src/gl3w.c)
21 target_link_libraries(gl3w dl)
23 include_directories(deps/cpptoml/include)
24 include_directories(deps/inotify)
25 include_directories(deps/handmademath)
27 include_directories(${PROJECT_SOURCE_DIR})
28 add_executable(zinnia src/main.cpp src/gui.cpp src/project.cpp
32 target_link_libraries(zinnia stdc++fs)
34 target_link_libraries(zinnia ${OPENGL_LIBRARIES})
35 target_link_libraries(zinnia ${GLFW_LIBRARIES})
36 target_link_libraries(zinnia gl3w)
37 target_link_libraries(zinnia ${GTK3_LIBRARIES})