|
|
|
@ -106,6 +106,13 @@ if(WITH_GLFWAPPLICATION) |
|
|
|
message(FATAL_ERROR "GLFW library, required by GlfwApplication, was not found. Set WITH_GLFWAPPLICATION to OFF to skip building it.") |
|
|
|
message(FATAL_ERROR "GLFW library, required by GlfwApplication, was not found. Set WITH_GLFWAPPLICATION to OFF to skip building it.") |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(TARGET_VULKAN) |
|
|
|
|
|
|
|
find_package(Vulkan) |
|
|
|
|
|
|
|
if(NOT GLFW_FOUND) |
|
|
|
|
|
|
|
message(FATAL_ERROR "Vulakn SDK was not found. Set TARGET_VULKAN to OFF to turn off Vulkan support.") |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
set(MagnumGlfwApplication_SRCS |
|
|
|
set(MagnumGlfwApplication_SRCS |
|
|
|
GlfwApplication.cpp |
|
|
|
GlfwApplication.cpp |
|
|
|
${MagnumSomeContext_OBJECTS}) |
|
|
|
${MagnumSomeContext_OBJECTS}) |
|
|
|
@ -119,6 +126,10 @@ if(WITH_GLFWAPPLICATION) |
|
|
|
# linked to the executable and not to any intermediate shared lib |
|
|
|
# linked to the executable and not to any intermediate shared lib |
|
|
|
target_link_libraries(MagnumGlfwApplication Magnum GLFW::GLFW) |
|
|
|
target_link_libraries(MagnumGlfwApplication Magnum GLFW::GLFW) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(TARGET_VULKAN) |
|
|
|
|
|
|
|
target_link_libraries(MagnumGlfwApplication Magnum Vulkan::Vulkan) |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
install(FILES ${MagnumGlfwApplication_HEADERS} DESTINATION ${MAGNUM_INCLUDE_INSTALL_DIR}/Platform) |
|
|
|
install(FILES ${MagnumGlfwApplication_HEADERS} DESTINATION ${MAGNUM_INCLUDE_INSTALL_DIR}/Platform) |
|
|
|
install(TARGETS MagnumGlfwApplication |
|
|
|
install(TARGETS MagnumGlfwApplication |
|
|
|
RUNTIME DESTINATION ${MAGNUM_BINARY_INSTALL_DIR} |
|
|
|
RUNTIME DESTINATION ${MAGNUM_BINARY_INSTALL_DIR} |
|
|
|
|