summaryrefslogtreecommitdiffhomepage
path: root/test/CMakeLists.txt
blob: eefe72f87258112a82d0249b2877f6f76f0bef54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)
else()
    link_libraries(Magnum::WindowlessGlxApplication)
endif()

add_executable(${self} "${sources}")
install(TARGETS ${self} RUNTIME DESTINATION bin)