summaryrefslogtreecommitdiffhomepage
path: root/src/CMakeLists.txt
blob: 413290b5a261feb81d9e7ab2ea70463fb2791b8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
set(self ${PROJECT_NAME})
file(GLOB sources "*.cpp" "../shaders/*.cpp" "../serialize/*.cpp" "../draw/*.cpp" CONFIGURE_ARGS)
add_library(${self} STATIC "${sources}")
target_link_libraries(
    ${self} PUBLIC
    Magnum::GL
    Magnum::Magnum
    Magnum::Shaders
    nlohmann_json::nlohmann_json
)
if(FLOORMAT_PRECOMPILED-HEADERS)
    target_precompile_headers(${self} PRIVATE precomp.hpp)
endif()