summaryrefslogtreecommitdiffhomepage
path: root/loader/CMakeLists.txt
blob: 4bba63dcdc598a8f95efaa1ec064ef38015aab93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 OR MAGNUM_BUILD_PLUGINS_STATIC)
    target_link_libraries(${self} PUBLIC
        MagnumPlugins::StbImageImporter
        Magnum::TgaImporter
    )
endif()
if(WIN32)
    target_link_libraries(${self} PUBLIC ntdll)
endif()
if(FLOORMAT_PRECOMPILED-HEADERS)
    target_precompile_headers(${self} PRIVATE precomp.hpp)
endif()