2014-05-03 09:02:51 -04:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/src/)
|
2015-05-19 14:53:16 -04:00
|
|
|
|
2014-05-30 04:56:12 -04:00
|
|
|
add_library(ChunkBuffer ${CMAKE_SOURCE_DIR}/src/ChunkData.cpp ${CMAKE_SOURCE_DIR}/src/StringUtils.cpp)
|
2014-04-27 15:25:03 -04:00
|
|
|
|
2018-01-03 12:41:16 -05:00
|
|
|
target_link_libraries(ChunkBuffer PUBLIC fmt::fmt)
|
2014-04-27 15:25:03 -04:00
|
|
|
|
|
|
|
add_executable(creatable-exe creatable.cpp)
|
|
|
|
target_link_libraries(creatable-exe ChunkBuffer)
|
|
|
|
add_test(NAME creatable-test COMMAND creatable-exe)
|
2014-05-03 09:02:51 -04:00
|
|
|
|
|
|
|
add_executable(coordinates-exe Coordinates.cpp)
|
|
|
|
target_link_libraries(coordinates-exe ChunkBuffer)
|
|
|
|
add_test(NAME coordinates-test COMMAND coordinates-exe)
|
2014-05-10 11:08:08 -04:00
|
|
|
|
|
|
|
add_executable(copies-exe Copies.cpp)
|
|
|
|
target_link_libraries(copies-exe ChunkBuffer)
|
|
|
|
add_test(NAME copies-test COMMAND copies-exe)
|
2014-05-11 14:24:09 -04:00
|
|
|
|
|
|
|
add_executable(arraystocoords-exe ArraytoCoord.cpp)
|
|
|
|
target_link_libraries(arraystocoords-exe ChunkBuffer)
|
|
|
|
add_test(NAME arraystocoords-test COMMAND arraystocoords-exe)
|
|
|
|
|
2014-05-30 11:44:24 -04:00
|
|
|
add_executable(copyblocks-exe CopyBlocks.cpp)
|
|
|
|
target_link_libraries(copyblocks-exe ChunkBuffer)
|
|
|
|
add_test(NAME copyblocks-test COMMAND copyblocks-exe)
|
2016-03-13 13:22:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Put all test projects into a separate folder:
|
|
|
|
set_target_properties(
|
|
|
|
arraystocoords-exe
|
|
|
|
coordinates-exe
|
|
|
|
copies-exe
|
|
|
|
copyblocks-exe
|
|
|
|
creatable-exe
|
|
|
|
PROPERTIES FOLDER Tests/ChunkData
|
|
|
|
)
|
|
|
|
set_target_properties(
|
|
|
|
ChunkBuffer
|
2020-05-16 15:59:10 -04:00
|
|
|
PROPERTIES FOLDER Tests/Libraries
|
2016-03-13 13:22:35 -04:00
|
|
|
)
|