mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
add test and src subdirectories
This commit is contained in:
parent
8e269e3693
commit
2b30ab966b
3 changed files with 94 additions and 60 deletions
19
test/CMakeLists.txt
Normal file
19
test/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
project(VoxelEngineTest)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
file(GLOB_RECURSE SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
|
||||
find_package(GTest)
|
||||
|
||||
add_executable(${PROJECT_NAME} ${SOURCES})
|
||||
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../src)
|
||||
target_link_libraries(
|
||||
${PROJECT_NAME}
|
||||
VoxelEngineSrc
|
||||
GTest::gtest_main
|
||||
)
|
||||
|
||||
include(GoogleTest)
|
||||
gtest_discover_tests(${PROJECT_NAME})
|
||||
Loading…
Add table
Add a link
Reference in a new issue