17a0a8a195
Inspired from https://github.com/InsightSoftwareConsortium/ITK/blob/master/Utilities/Maintenance/HowToCreateTheCMakeCaseConversion.txt This needs vim 7.3 and fails with vim 7.4 This also fixes a number of : - missing empty line at end of files - useless space at end of lines
18 lines
336 B
CMake
18 lines
336 B
CMake
# UNIT TESTS
|
|
|
|
include_directories(
|
|
${OPENJPEG_BINARY_DIR}/src/lib/openjp2 # opj_config.h
|
|
${OPENJPEG_SOURCE_DIR}/src/lib/openjp2
|
|
)
|
|
|
|
set(unit_test
|
|
testempty0
|
|
testempty1
|
|
testempty2
|
|
)
|
|
foreach(ut ${unit_test})
|
|
add_executable(${ut} ${ut}.c)
|
|
target_link_libraries(${ut} openjp2)
|
|
add_test(NAME ${ut} COMMAND ${ut})
|
|
endforeach()
|