1
0

CMakeLists.txt 447 B

1234567891011121314
  1. ADD_SUBDIRECTORY(cram)
  2. MACRO(ADD_UNIT_TEST name)
  3. ADD_EXECUTABLE(${name} ${name}.c)
  4. TARGET_LINK_LIBRARIES(${name} ubox blobmsg_json ${json})
  5. TARGET_INCLUDE_DIRECTORIES(${name} PRIVATE ${PROJECT_SOURCE_DIR})
  6. ENDMACRO(ADD_UNIT_TEST)
  7. FILE(GLOB test_cases "test-*.c")
  8. FOREACH(test_case ${test_cases})
  9. GET_FILENAME_COMPONENT(test_case ${test_case} NAME_WE)
  10. ADD_UNIT_TEST(${test_case})
  11. ADD_UNIT_TEST_SAN(${test_case})
  12. ENDFOREACH(test_case)