84 lines
1.3 KiB
CMake
84 lines
1.3 KiB
CMake
INCLUDE(CTest)
|
|
|
|
# add unity library
|
|
add_library(unity STATIC ../extern/Unity/src/unity.c)
|
|
target_include_directories(unity PUBLIC ../extern/Unity/src)
|
|
|
|
add_executable(test_entity)
|
|
target_sources(test_entity
|
|
PRIVATE
|
|
test_entity.c
|
|
)
|
|
target_link_libraries(test_entity
|
|
unity
|
|
src
|
|
)
|
|
add_test(TEST_ENTITY test_entity)
|
|
|
|
add_executable(test_filter)
|
|
target_sources(test_filter
|
|
PRIVATE
|
|
test_filter.c
|
|
)
|
|
target_link_libraries(test_filter
|
|
unity
|
|
src
|
|
)
|
|
add_test(TEST_FILTER test_filter)
|
|
|
|
add_executable(test_data)
|
|
target_sources(test_data
|
|
PRIVATE
|
|
test_data.c
|
|
)
|
|
target_link_libraries(test_data
|
|
unity
|
|
src
|
|
)
|
|
add_test(TEST_DATA test_data)
|
|
|
|
add_executable(test_metadata)
|
|
target_sources(test_metadata
|
|
PRIVATE
|
|
test_metadata.c
|
|
)
|
|
target_link_libraries(test_metadata
|
|
unity
|
|
src
|
|
)
|
|
add_test(TEST_METADATA test_metadata)
|
|
|
|
add_executable(test_order)
|
|
target_sources(test_order
|
|
PRIVATE
|
|
test_order.c
|
|
)
|
|
target_link_libraries(test_order
|
|
unity
|
|
src
|
|
)
|
|
add_test(TEST_ORDER test_order)
|
|
|
|
add_executable(test_sub)
|
|
target_sources(test_sub
|
|
PRIVATE
|
|
test_sub.c
|
|
)
|
|
target_link_libraries(test_sub
|
|
unity
|
|
src
|
|
)
|
|
add_test(TEST_SUB test_sub)
|
|
|
|
add_executable(test_util)
|
|
target_sources(test_util
|
|
PRIVATE
|
|
test_util.c
|
|
)
|
|
target_link_libraries(test_util
|
|
unity
|
|
src
|
|
)
|
|
add_test(TEST_UTIL test_util)
|
|
|