Skip to content

Commit

Permalink
Checkpoint. Correctly copying DLL/PDB.
Browse files Browse the repository at this point in the history
  • Loading branch information
edisonlee0212 committed Sep 4, 2024
1 parent 6233b98 commit 0105a59
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
1 change: 0 additions & 1 deletion EvoEngine_Plugins/RayTracer/src/CpuRayTracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ void CpuRayTracer::Clear() noexcept {

void CpuRayTracer::Initialize(const std::shared_ptr<Mesh>& input_mesh) {
Clear();
assert(std::is_pod<MeshRecord>() && std::is_pod<NodeRecord>());
geometry_instances_.resize(1);
node_instances_.resize(1);
geometry_instances_[0].Initialize(input_mesh);
Expand Down
16 changes: 8 additions & 8 deletions EvoEngine_SDK/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,24 +128,24 @@ set(EVOENGINE_SDK_DEFS NOMINMAX PARENT_SCOPE)
function(evoengine_sdk_copy_resources dst_target dst_dir)
add_custom_command(TARGET ${dst_target} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
${EVOENGINE_SDK_DIR}/Internals
${dst_dir})
${EVOENGINE_SDK_DIR}/Internals ${dst_dir}
VERBATIM)
foreach(file_i ${EVOENGINE_SDK_DLLS})
add_custom_command(TARGET ${dst_target} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${file_i}
${dst_dir})
${file_i} ${dst_dir} || (exit 0)
VERBATIM)
endforeach(file_i)
foreach(file_i ${3RDPARTY_DLLS})
add_custom_command(TARGET ${dst_target} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${file_i}
${dst_dir})
${file_i} ${dst_dir} || (exit 0)
VERBATIM)
endforeach(file_i)
foreach(file_i ${3RDPARTY_PDBS})
add_custom_command(TARGET ${dst_target} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${file_i}
${dst_dir})
${file_i} ${dst_dir} || (exit 0)
VERBATIM)
endforeach(file_i)
endfunction()
2 changes: 2 additions & 0 deletions Extern/3rdParty/assimp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ set(3RDPARTY_INCLUDES ${3RDPARTY_INCLUDES}

set(3RDPARTY_DLLS ${3RDPARTY_DLLS}
${CMAKE_CURRENT_BINARY_DIR}/assimp/bin/assimp-vc143-mt.dll
${CMAKE_CURRENT_BINARY_DIR}/assimp/bin/$<CONFIGURATION>/assimp-vc143-mt.dll
PARENT_SCOPE)

set(3RDPARTY_PDBS ${3RDPARTY_PDBS}
${CMAKE_CURRENT_BINARY_DIR}/assimp/bin/assimp-vc143-mt.pdb
${CMAKE_CURRENT_BINARY_DIR}/assimp/bin/$<CONFIGURATION>/assimp-vc143-mt.pdb
PARENT_SCOPE)
2 changes: 2 additions & 0 deletions Extern/3rdParty/zlib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ set(3RDPARTY_INCLUDES ${3RDPARTY_INCLUDES} ${ZLIB_INCLUDE_DIR} PARENT_SCOPE)

set(3RDPARTY_DLLS ${3RDPARTY_DLLS}
${CMAKE_CURRENT_BINARY_DIR}/zlib/zlib1.dll
${CMAKE_CURRENT_BINARY_DIR}/zlib/$<CONFIGURATION>/zlib1.dll
PARENT_SCOPE)

set(3RDPARTY_PDBS ${3RDPARTY_PDBS}
${CMAKE_CURRENT_BINARY_DIR}/zlib/zlib.pdb
${CMAKE_CURRENT_BINARY_DIR}/zlib/$<CONFIGURATION>/zlib.pdb
PARENT_SCOPE)

0 comments on commit 0105a59

Please sign in to comment.