summaryrefslogtreecommitdiffhomepage
path: root/main/CMakeLists.txt
blob: 419043aa51cb69168c2b97a55c812012e57d634d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
    tsl::robin_map
)

if(NOT MSVC)
    target_precompile_headers(${self} REUSE_FROM floormat)
else()
    target_precompile_headers(${self} PRIVATE ../src/precomp.hpp)
endif()