X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fgdcmopenjpeg%2Fcodec%2FCMakeLists.txt;h=4eb3b22f1e66f57b83e88c787658813993418e57;hb=35ee8ee8af32946514713d271177df8bb2298eb2;hp=3f3c7d5a3f5a3521dab16c111d6700e2008abc70;hpb=bba4d4f75b6c5e373de1a555b7eaadfba961eaaa;p=gdcm.git diff --git a/src/gdcmopenjpeg/codec/CMakeLists.txt b/src/gdcmopenjpeg/codec/CMakeLists.txt index 3f3c7d5a..4eb3b22f 100644 --- a/src/gdcmopenjpeg/codec/CMakeLists.txt +++ b/src/gdcmopenjpeg/codec/CMakeLists.txt @@ -1,5 +1,11 @@ # Build the demo app, small examples + + if(COMMAND cmake_policy) + cmake_policy(SET CMP0003 NEW) + endif(COMMAND cmake_policy) + + # First thing define the common source: SET(common_SRCS convert.c @@ -37,7 +43,8 @@ IF(NOT BUILD_SHARED_LIBS) ENDIF(NOT BUILD_SHARED_LIBS) # Loop over all executables: -FOREACH(exe j2k_to_image image_to_j2k) +#FOREACH(exe j2k_to_image image_to_j2k) +FOREACH(exe image_to_j2k) ADD_EXECUTABLE(${exe} ${exe}.c ${common_SRCS}) TARGET_LINK_LIBRARIES(${exe} ${OPJ_PREFIX}openjpeg) # On unix you need to link to the math library: