Mercurial > hg > orthanc-wsi
comparison Resources/CMake/LibTiffConfiguration.cmake @ 304:d4a1b6efab1b
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 26 Jan 2024 17:36:32 +0100 |
parents | 2e59c3fe8e32 |
children | ec2c2ea026c0 |
comparison
equal
deleted
inserted
replaced
303:2e59c3fe8e32 | 304:d4a1b6efab1b |
---|---|
72 -DHOST_FILLORDER=${TIFF_FILLORDER} | 72 -DHOST_FILLORDER=${TIFF_FILLORDER} |
73 -DJPEG_SUPPORT=1 | 73 -DJPEG_SUPPORT=1 |
74 -DLZW_SUPPORT=1 | 74 -DLZW_SUPPORT=1 |
75 ) | 75 ) |
76 | 76 |
77 if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows" AND | 77 if (NOT MSVC) |
78 CMAKE_COMPILER_IS_GNUCXX) | 78 # snprintf() is not available on Visual Studio 2008 |
79 # MinGW | |
80 add_definitions(-DHAVE_SNPRINTF=1) | 79 add_definitions(-DHAVE_SNPRINTF=1) |
81 endif() | 80 endif() |
82 | 81 |
83 if (MSVC) | 82 if (MSVC) |
84 # The "%" must be escaped if using Visual Studio | 83 # The "%" must be escaped if using Visual Studio |
138 ${LIBTIFF_SOURCES_DIR}/libtiff/tif_zip.c | 137 ${LIBTIFF_SOURCES_DIR}/libtiff/tif_zip.c |
139 ) | 138 ) |
140 | 139 |
141 include_directories(${LIBTIFF_SOURCES_DIR}/libtiff) | 140 include_directories(${LIBTIFF_SOURCES_DIR}/libtiff) |
142 | 141 |
143 if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows") | |
144 list(APPEND LIBTIFF_SOURCES | |
145 ${LIBTIFF_SOURCES_DIR}/libtiff/tif_win32.c | |
146 ) | |
147 endif() | |
148 | |
149 source_group(ThirdParty\\libtiff REGULAR_EXPRESSION ${LIBTIFF_SOURCES_DIR}/.*) | 142 source_group(ThirdParty\\libtiff REGULAR_EXPRESSION ${LIBTIFF_SOURCES_DIR}/.*) |
150 | 143 |
151 else() | 144 else() |
152 CHECK_INCLUDE_FILE_CXX(tiff.h HAVE_LIBTIFF_H) | 145 CHECK_INCLUDE_FILE_CXX(tiff.h HAVE_LIBTIFF_H) |
153 if (NOT HAVE_LIBTIFF_H) | 146 if (NOT HAVE_LIBTIFF_H) |