• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1link_libraries(iowow_s ${CUNIT_LIBRARIES})
2include_directories(${CUNIT_INCLUDE_DIRS})
3
4set(TEST_DATA_DIR ${CMAKE_CURRENT_BINARY_DIR})
5set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${TEST_DATA_DIR})
6
7foreach(TN IN ITEMS iwre_test1)
8  add_executable(${TN} ${TN}.c)
9  set_target_properties(${TN} PROPERTIES COMPILE_FLAGS "-DIW_STATIC")
10  add_test(
11    NAME ${TN}
12    WORKING_DIRECTORY ${TEST_DATA_DIR}
13    COMMAND ${TEST_TOOL_CMD} $<TARGET_FILE:${TN}>)
14endforeach()
15