summaryrefslogtreecommitdiffhomepage
path: root/main/CMakeLists.txt
blob: d0e324910320300c75afe1c2da72bebb37e9a4fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
set(self floormat-main)
file(GLOB sources "*.cpp" CONFIGURE_ARGS)

add_library(${self} OBJECT "${sources}")
target_link_libraries(${self} PUBLIC
    Magnum::Sdl2Application
    Corrade::Containers
    Magnum::GL
    Magnum::Trade
    fmt::fmt
)

target_link_libraries(${self} PUBLIC floormat-draw floormat)

if(FLOORMAT_PRECOMPILED-HEADERS)
    target_precompile_headers(${self} PRIVATE precomp.hpp)
endif()