build_environment: add debug libs for embree on windows
authorRay Molenkamp <github@lazydodo.com>
Thu, 8 Nov 2018 02:33:07 +0000 (19:33 -0700)
committerRay Molenkamp <github@lazydodo.com>
Thu, 8 Nov 2018 02:33:07 +0000 (19:33 -0700)
build_files/build_environment/cmake/embree.cmake
build_files/build_environment/cmake/harvest.cmake

index 34e5904db5ed0cc6fef30ec14d25d75beda25525..8c523e25f0cb31842c7b1b7ce9c1bf8619ff506a 100644 (file)
@@ -44,3 +44,26 @@ ExternalProject_Add(external_embree
        CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${LIBDIR}/embree ${DEFAULT_CMAKE_FLAGS} ${EMBREE_EXTRA_ARGS}
        INSTALL_DIR ${LIBDIR}/embree
 )
+if(WIN32)
+
+       if(BUILD_MODE STREQUAL Release)
+               ExternalProject_Add_Step(external_embree after_install
+                       COMMAND ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/embree ${HARVEST_TARGET}/embree
+                       DEPENDEES install
+               )
+       else()
+       ExternalProject_Add_Step(external_embree after_install
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/embree/lib/embree3.lib ${HARVEST_TARGET}/embree/lib/embree3_d.lib
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/embree/lib/embree_avx.lib ${HARVEST_TARGET}/embree/lib/embree_avx_d.lib
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/embree/lib/embree_avx2.lib ${HARVEST_TARGET}/embree/lib/embree_avx2_d.lib
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/embree/lib/embree_sse42.lib ${HARVEST_TARGET}/embree/lib/embree_sse42_d.lib
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/embree/lib/lexers.lib ${HARVEST_TARGET}/embree/lib/lexers_d.lib
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/embree/lib/math.lib ${HARVEST_TARGET}/embree/lib/math_d.lib
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/embree/lib/simd.lib ${HARVEST_TARGET}/embree/lib/simd_d.lib
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/embree/lib/sys.lib ${HARVEST_TARGET}/embree/lib/sys_d.lib
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/embree/lib/tasking.lib ${HARVEST_TARGET}/embree/lib/tasking_d.lib
+                       DEPENDEES install
+               )
+       endif()
+
+endif()
index d0d8b4cefb9ff5a5ac9977ccc41a8aa3f744a54d..f2e9c2fa8dbdad186479cfddbdd8262264ee350c 100644 (file)
@@ -58,8 +58,6 @@ if(BUILD_MODE STREQUAL Release)
                                ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/hidapi/ ${HARVEST_TARGET}/hidapi/ &&
                                # webp, straight up copy
                                ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/webp ${HARVEST_TARGET}/webp &&
-                               # embree
-                               ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/embree ${HARVEST_TARGET}/embree
                DEPENDS
        )
 endif()