summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2017-03-26 14:45:46 +0200
committerChristian Beier <dontmind@freeshell.org>2017-03-26 14:45:46 +0200
commit0d5d16b4a789f5b3c38a8e416e864311c2639895 (patch)
tree05393a8682e3e34936c8ad31328f972b3f0c7ab8 /CMakeLists.txt
parent9d37f15992e2dc66881ec5f37e9568de5e16afab (diff)
downloadlibtdevnc-0d5d16b4a789f5b3c38a8e416e864311c2639895.tar.gz
libtdevnc-0d5d16b4a789f5b3c38a8e416e864311c2639895.zip
CMake: only build TurboJPEG unit tests if lib has jpeg support
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 93317af..c0ce308 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -498,7 +498,7 @@ foreach(t ${SIMPLETESTS})
target_link_libraries(test_${t} vncserver vncclient ${ADDITIONAL_TEST_LIBS})
endforeach(t ${SIMPLETESTS})
-if(FOUND_LIBJPEG_TURBO)
+if(WITH_JPEG AND FOUND_LIBJPEG_TURBO)
add_executable(test_tjunittest
${TESTS_DIR}/tjunittest.c
${TESTS_DIR}/tjutil.c
@@ -523,7 +523,7 @@ if(FOUND_LIBJPEG_TURBO)
set_target_properties(test_tjbench PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
target_link_libraries(test_tjbench vncserver vncclient ${ADDITIONAL_TEST_LIBS})
-endif(FOUND_LIBJPEG_TURBO)
+endif(WITH_JPEG AND FOUND_LIBJPEG_TURBO)
add_test(NAME cargs COMMAND test_cargstest)
if(FOUND_LIBJPEG_TURBO)