complete the rename of voxelengine to voxelcore

This commit is contained in:
MihailRis 2026-10-10 10:54:36 +03:00
parent a875630cd8
commit 8962042627
21 changed files with 52 additions and 54 deletions

View file

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.5)
project(VoxelEngine)
project(VoxelCore)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
@ -27,23 +27,23 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
endif()
add_subdirectory(src)
add_executable(VoxelEngine src/main.cpp)
add_executable(VoxelCore src/main.cpp)
if(VOXELENGINE_BUILD_APPDIR)
include(${CMAKE_CURRENT_SOURCE_DIR}/dev/cmake/BuildAppdir.cmake)
endif()
target_link_libraries(VoxelEngine PRIVATE VoxelEngineSrc
target_link_libraries(VoxelCore PRIVATE VoxelCoreSrc
$<$<PLATFORM_ID:Windows>:winmm>)
target_link_options(VoxelEngine PRIVATE $<$<CXX_COMPILER_ID:GNU>:-no-pie>)
target_link_options(VoxelCore PRIVATE $<$<CXX_COMPILER_ID:GNU>:-no-pie>)
# Deploy res to build dir
add_custom_command(
TARGET VoxelEngine
TARGET VoxelCore
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different
${CMAKE_CURRENT_SOURCE_DIR}/res $<TARGET_FILE_DIR:VoxelEngine>/res)
${CMAKE_CURRENT_SOURCE_DIR}/res $<TARGET_FILE_DIR:VoxelCore>/res)
if(VOXELENGINE_BUILD_TESTS)
enable_testing()