Set up some db tests with table create.
This commit is contained in:
parent
4d2464c1f5
commit
a6d92e142f
5 changed files with 110 additions and 28 deletions
|
@ -1,13 +1,15 @@
|
|||
set(CORE_UNIT_TEST_FILES
|
||||
core/TestByteUtils.cpp
|
||||
core/TestBitStream.cpp
|
||||
core/TestDataStructures.cpp
|
||||
core/TestTomlReader.cpp
|
||||
core/TestStringUtils.cpp
|
||||
PARENT_SCOPE
|
||||
)
|
||||
|
||||
set(CORE_UNIT_TEST_DEPENDENCIES
|
||||
core
|
||||
PARENT_SCOPE
|
||||
)
|
||||
set(MODULE_NAME core)
|
||||
|
||||
list(APPEND UNIT_TEST_FILES
|
||||
TestByteUtils.cpp
|
||||
TestBitStream.cpp
|
||||
TestDataStructures.cpp
|
||||
TestTomlReader.cpp
|
||||
TestStringUtils.cpp
|
||||
)
|
||||
|
||||
set(UNIT_TEST_TARGET_NAME ${MODULE_NAME}_unit_tests)
|
||||
|
||||
add_executable(${UNIT_TEST_TARGET_NAME} ${CMAKE_SOURCE_DIR}/test/test_runner.cpp ${UNIT_TEST_FILES})
|
||||
target_link_libraries(${UNIT_TEST_TARGET_NAME} PUBLIC test_utils core)
|
||||
set_property(TARGET ${UNIT_TEST_TARGET_NAME} PROPERTY FOLDER test/${MODULE_NAME})
|
Loading…
Add table
Add a link
Reference in a new issue