CMakeLists.txt 983 Bytes
Newer Older
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
1
ADD_LIBRARY(check_aec STATIC check_aec.c)
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
2

3 4
ADD_EXECUTABLE(check_code_options check_code_options.c)
TARGET_LINK_LIBRARIES(check_code_options check_aec aec)
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
5

6 7
ADD_EXECUTABLE(check_buffer_sizes check_buffer_sizes.c)
TARGET_LINK_LIBRARIES(check_buffer_sizes check_aec aec)
Mathis Rosenhauer's avatar
Mathis Rosenhauer committed
8

9 10
ADD_TEST(NAME check_code_options COMMAND check_code_options)
ADD_TEST(NAME check_buffer_sizes COMMAND check_buffer_sizes)
11
IF(UNIX)
12 13 14 15 16 17 18 19 20 21 22 23 24
  ADD_EXECUTABLE(check_long_fs check_long_fs.c)
  TARGET_LINK_LIBRARIES(check_long_fs check_aec aec)
  ADD_TEST(NAME check_long_fs COMMAND check_long_fs)
  ADD_TEST(
    NAME sampledata.sh
    COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/sampledata.sh ${CMAKE_CURRENT_SOURCE_DIR}
    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
    )
  ADD_EXECUTABLE(check_szcomp check_szcomp.c)
  TARGET_LINK_LIBRARIES(check_szcomp check_aec sz)
  ADD_TEST(
    NAME check_szcomp
    COMMAND check_szcomp ${CMAKE_CURRENT_SOURCE_DIR}/../data/121B2TestData/ExtendedParameters/sar32bit.dat
25
    )
26
ENDIF(UNIX)