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