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 iwfs_test1 iwfs_test2 iwfs_test3) 8 add_executable(${TN} ${TN}.c) 9 set_target_properties(${TN} PROPERTIES 10 COMPILE_FLAGS "-DIW_STATIC") 11 add_test(NAME ${TN} WORKING_DIRECTORY ${TEST_DATA_DIR} 12 COMMAND ${TEST_TOOL_CMD} $<TARGET_FILE:${TN}>) 13endforeach() 14