X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fgdcmjpegls%2FDecoder%2FCMakeLists.txt;h=c00765bbc84b1042910efc2b9f9a254129dba445;hb=6237b242dba31eddbd81ba4c4b167bcf82a51c37;hp=6a78b5725c31f09e4ba98f3eda8408fdc31f76e2;hpb=e25701163b7a811735b61459a5e498eb3e8502b8;p=gdcm.git diff --git a/src/gdcmjpegls/Decoder/CMakeLists.txt b/src/gdcmjpegls/Decoder/CMakeLists.txt index 6a78b572..c00765bb 100644 --- a/src/gdcmjpegls/Decoder/CMakeLists.txt +++ b/src/gdcmjpegls/Decoder/CMakeLists.txt @@ -1,5 +1,7 @@ INCLUDE_REGULAR_EXPRESSION("^.*$") +INCLUDE_DIRECTORIES("${GDCMJPEGLS_BINARY_DIR}") + SET(GDCMJPEGLS_SRCS global.c jpegmark.c @@ -10,6 +12,17 @@ SET(GDCMJPEGLS_SRCS bitio.c melcode.c) +# Do the -fno-common magic +IF(APPLE) + FOREACH(f ${GDCMJPEGLS_SRCS}) + SET_SOURCE_FILES_PROPERTIES( + "${GDCMJPEGLS_SOURCE_DIR}/Decoder/${f}" + PROPERTIES COMPILE_FLAGS -fno-common) + ENDFOREACH(f) +ENDIF(APPLE) + + ADD_LIBRARY(gdcmjpegls ${GDCMJPEGLS_SRCS}) +#ADD_EXECUTABLE(locod ${GDCMJPEGLS_SRCS}) # TODO must do the INSTALL_ blah thing