mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 07:37:20 +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)
|
list(APPEND POLYVOX_INCLUDE_DIRS ${VCPKG_INSTALL_ROOT}/include)
|
||||||
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
||||||
set(_LIB_GLOBS)
|
set(_LIB_GLOBS)
|
||||||
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
|
if(NOT DEFINED CMAKE_BUILD_TYPE OR "${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
|
||||||
set(_PV_LIBRARIES ${POLYVOX_LIBRARY_DEBUG})
|
foreach(_lib ${POLYVOX_LIBRARY_DEBUG})
|
||||||
else()
|
list(APPEND _LIB_GLOBS ${_lib}*)
|
||||||
set(_PV_LIBRARIES ${POLYVOX_LIBRARY_RELEASE})
|
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()
|
endif()
|
||||||
foreach(_lib ${_PV_LIBRARIES})
|
|
||||||
list(APPEND _LIB_GLOBS ${_lib}*)
|
|
||||||
endforeach()
|
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET ${TARGET_NAME}
|
TARGET ${TARGET_NAME}
|
||||||
POST_BUILD
|
POST_BUILD
|
||||||
|
|
Loading…
Reference in a new issue