summaryrefslogtreecommitdiffhomepage
path: root/test/CMakeLists.txt
blob: 71b9ed9398383e9237855a9f0ce4a6f4c2b38310 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
set(self "${PROJECT_NAME}-test")
file(GLOB sources "*.cpp" "../loader/*.cpp" CONFIGURE_ARGS)

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

link_libraries(${PROJECT_NAME})
link_libraries(Magnum::Trade)

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}")
install(TARGETS ${self} RUNTIME DESTINATION bin)