summaryrefslogtreecommitdiffhomepage
path: root/test/CMakeLists.txt
blob: d7d202dc51fa3a1dc1ba9a5e8d6430cebee94657 (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-test)
file(GLOB sources "*.cpp" CONFIGURE_ARGS)

file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/test")

link_libraries(Magnum::GL Magnum::Trade)
link_libraries(floormat-loader floormat-serialize floormat)

if(APPLE)
    link_libraries(Magnum::WindowlessCglApplication)
elseif(WIN32)
    link_libraries(Magnum::WindowlessWglApplication)
    link_libraries(ntdll)
else()
    link_libraries(Magnum::WindowlessGlxApplication)
endif()

add_executable(${self} "${sources}")
if(FLOORMAT_PRECOMPILED-HEADERS)
    target_precompile_headers(${self} PRIVATE precomp.hpp)
endif()
install(TARGETS ${self} RUNTIME DESTINATION bin)