• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1link_libraries(ejdb2_s ${CUNIT_LIBRARIES})
2include_directories(${CUNIT_INCLUDE_DIRS})
3
4file(GLOB datafiles RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}/data" "data/*")
5foreach (file ${datafiles})
6  configure_file("data/${file}" "data/${file}" COPYONLY)
7endforeach ()
8
9set(TEST_DATA_DIR ${CMAKE_CURRENT_BINARY_DIR})
10set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${TEST_DATA_DIR})
11
12foreach (TN IN ITEMS jql_test1)
13  add_executable(${TN} ${TN}.c)
14  set_target_properties(${TN} PROPERTIES
15    COMPILE_FLAGS "-DIW_STATIC")
16  add_test(NAME ${TN} WORKING_DIRECTORY ${TEST_DATA_DIR}
17    COMMAND ${TEST_TOOL_CMD} $<TARGET_FILE:${TN}>)
18endforeach ()
19