mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
complete the rename of voxelengine to voxelcore
This commit is contained in:
parent
a875630cd8
commit
8962042627
21 changed files with 52 additions and 54 deletions
|
|
@ -1,22 +1,22 @@
|
|||
project(VoxelEngineTest)
|
||||
project(VoxelCoreTest)
|
||||
|
||||
file(GLOB_RECURSE sources ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
|
||||
find_package(GTest)
|
||||
|
||||
add_executable(VoxelEngineTest ${sources})
|
||||
add_executable(VoxelCoreTest ${sources})
|
||||
|
||||
target_link_libraries(VoxelEngineTest PRIVATE VoxelEngineSrc GTest::gtest_main)
|
||||
target_link_libraries(VoxelCoreTest PRIVATE VoxelCoreSrc GTest::gtest_main)
|
||||
|
||||
# HACK: copy res to test/ folder for fixing problem compatibility MultiConfig
|
||||
# and non MultiConfig builds. Delete in future and use only root res folder Also
|
||||
# this resolve problem with ctests, because it set cwd to
|
||||
# ${CMAKE_CURRENT_BINARY_DIR}
|
||||
add_custom_command(
|
||||
TARGET VoxelEngineTest
|
||||
TARGET VoxelCoreTest
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different
|
||||
${CMAKE_SOURCE_DIR}/res ${CMAKE_CURRENT_BINARY_DIR}/res)
|
||||
|
||||
include(GoogleTest)
|
||||
gtest_discover_tests(VoxelEngineTest)
|
||||
gtest_discover_tests(VoxelCoreTest)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue