summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorMickael Savinaud <savmickael@users.noreply.github.com>2013-02-02 17:14:26 +0000
committerMickael Savinaud <savmickael@users.noreply.github.com>2013-02-02 17:14:26 +0000
commit69a8bc896073690711b57f1cbf8555e1da6f0f06 (patch)
tree8856ee7c8a5ec61985c0135bfc7911be8ac940ba /tests/unit
parent55146418d54b79249e4f17561da0dc09ccd66fab (diff)
[b2.x.x] backport into 2.x.x the rev 2241 of trunk
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/CMakeLists.txt4
-rw-r--r--tests/unit/testempty0.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit/CMakeLists.txt b/tests/unit/CMakeLists.txt
index 984cedc3..d6bca7ad 100644
--- a/tests/unit/CMakeLists.txt
+++ b/tests/unit/CMakeLists.txt
@@ -5,10 +5,14 @@ include_directories(
${OPENJPEG_SOURCE_DIR}/src/lib/openjp2
)
+add_executable(testempty0 testempty0.c)
add_executable(testempty1 testempty1.c)
add_executable(testempty2 testempty2.c)
+
+target_link_libraries(testempty0 openjp2)
target_link_libraries(testempty1 openjp2)
target_link_libraries(testempty2 openjp2)
+add_test(testempty0 ${EXECUTABLE_OUTPUT_PATH}/testempty0)
add_test(testempty1 ${EXECUTABLE_OUTPUT_PATH}/testempty1)
add_test(testempty2 ${EXECUTABLE_OUTPUT_PATH}/testempty2)
diff --git a/tests/unit/testempty0.c b/tests/unit/testempty0.c
new file mode 100644
index 00000000..32d6f266
--- /dev/null
+++ b/tests/unit/testempty0.c
@@ -0,0 +1,3 @@
+#include <openjpeg.h>
+
+int main(int argc, char **argv) { return 0; }