blob: adcd246f71343e9142f87d3d1585bfd973f83ec4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
set(self floormat-test)
file(GLOB sources "*.cpp" CONFIGURE_ARGS)
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/test")
add_library(${self}_o STATIC ${sources})
target_link_libraries(${self}_o PUBLIC Magnum::GL Magnum::Trade nlohmann_json::nlohmann_json)
if(APPLE)
target_link_libraries(${self}_o PUBLIC Magnum::WindowlessCglApplication)
elseif(WIN32)
target_link_libraries(${self}_o PUBLIC Magnum::WindowlessWglApplication)
target_link_libraries(${self}_o PUBLIC ntdll)
else()
target_link_libraries(${self}_o PUBLIC Magnum::WindowlessGlxApplication)
endif()
add_executable(${self} dummy.cc)
target_link_libraries(${self} PUBLIC ${self}_o floormat-loader floormat-serialize floormat)
if(FLOORMAT_PRECOMPILED-HEADERS)
target_precompile_headers(${self} PRIVATE precomp.hpp)
endif()
install(TARGETS ${self} RUNTIME DESTINATION bin)
|