summaryrefslogtreecommitdiffhomepage
path: root/loader/CMakeLists.txt
blob: 9c0b6ee79a59f61b6104aa3584d1936976a7e7ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
set(self floormat-loader)
file(GLOB sources "*.cpp" CONFIGURE_ARGS)
add_library(${self} STATIC "${sources}")
target_link_libraries(
    ${self} PUBLIC
    floormat-serialize
    floormat
    Magnum::Magnum
    Magnum::Trade
)
if(WIN32)
    target_link_libraries(${self} PUBLIC ntdll)
endif()
if(FLOORMAT_PRECOMPILED-HEADERS)
    target_precompile_headers(${self} PRIVATE precomp.hpp)
endif()