Added install statements

This commit is contained in:
Robert 2021-01-25 13:33:39 +01:00
parent bd4071ef72
commit 5159cdce30
2 changed files with 7 additions and 5 deletions

View file

@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.10)
project(OpenGLUtility)
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
# set(CMAKE_CXX_STANDARD 17)
set(BUILD_EXAMPLES ON CACHE BOOL "Build examples")

View file

@ -32,8 +32,8 @@ add_custom_command(TARGET movement POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/assets $<TARGET_FILE_DIR:movement>/assets
)
if(WIN32)
add_custom_command(TARGET movement POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:openglu> $<TARGET_FILE:glfw> $<TARGET_FILE_DIR:movement>
)
endif()
# if(WIN32)
# add_custom_command(TARGET movement POST_BUILD
# COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:openglu> $<TARGET_FILE:glfw> $<TARGET_FILE_DIR:movement>
# )
# endif()