Added install statements
This commit is contained in:
parent
bd4071ef72
commit
5159cdce30
|
@ -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")
|
||||
|
|
|
@ -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()
|
Loading…
Reference in a new issue