mirror of
https://github.com/overte-org/overte.git
synced 2025-04-13 14:52:19 +02:00
Fix copying PolyVox libraries to cmake binary directory
This commit is contained in:
parent
d99dad3fcb
commit
b92bd1773a
1 changed files with 9 additions and 7 deletions
|
@ -23,14 +23,16 @@ macro(TARGET_POLYVOX)
|
|||
list(APPEND POLYVOX_INCLUDE_DIRS ${VCPKG_INSTALL_ROOT}/include)
|
||||
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
||||
set(_LIB_GLOBS)
|
||||
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
|
||||
set(_PV_LIBRARIES ${POLYVOX_LIBRARY_DEBUG})
|
||||
else()
|
||||
set(_PV_LIBRARIES ${POLYVOX_LIBRARY_RELEASE})
|
||||
if(NOT DEFINED CMAKE_BUILD_TYPE OR "${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
|
||||
foreach(_lib ${POLYVOX_LIBRARY_DEBUG})
|
||||
list(APPEND _LIB_GLOBS ${_lib}*)
|
||||
endforeach()
|
||||
endif()
|
||||
if(NOT DEFINED CMAKE_BUILD_TYPE OR "${CMAKE_BUILD_TYPE}" STREQUAL "Release")
|
||||
foreach(_lib ${POLYVOX_LIBRARY_RELEASE})
|
||||
list(APPEND _LIB_GLOBS ${_lib}*)
|
||||
endforeach()
|
||||
endif()
|
||||
foreach(_lib ${_PV_LIBRARIES})
|
||||
list(APPEND _LIB_GLOBS ${_lib}*)
|
||||
endforeach()
|
||||
add_custom_command(
|
||||
TARGET ${TARGET_NAME}
|
||||
POST_BUILD
|
||||
|
|
Loading…
Reference in a new issue