-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
33 lines (24 loc) · 984 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
cmake_minimum_required(VERSION 3.16)
project(FluxHarmonic C)
include("cmake/compiler.cmake")
find_package(PkgConfig REQUIRED)
find_package(Threads REQUIRED)
find_package(glfw3 3.3 REQUIRED)
find_package(OpenGL REQUIRED)
find_package(ZLIB REQUIRED)
find_package(Freetype REQUIRED)
find_package(Fontconfig REQUIRED)
include_directories(lib src lib/mesche/include lib/vendor/spng lib/vendor/miniz lib/vendor/glad/include lib/vendor/cglm)
add_library(mesche)
target_link_libraries(mesche)
add_library(flux)
target_link_libraries(flux mesche m z ${FREETYPE_LIBRARIES} ${Fontconfig_LIBRARIES} Threads::Threads glfw OpenGL::GL ${CMAKE_DL_LIBS})
target_include_directories(flux PRIVATE ${FREETYPE_INCLUDE_DIRS} ${FONTCONFIG_INCLUDE_DIRS})
add_executable(flux-compose)
target_link_libraries(flux-compose flux mesche)
add_executable(run-tests)
target_link_libraries(run-tests PUBLIC flux)
add_subdirectory(lib/mesche)
add_subdirectory(lib)
add_subdirectory(src)
add_subdirectory(test)