| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| set(port_HEADERS libport.h) |
| set(port_SOURCES dummy.c) |
| set(port_optional_SOURCES |
| getopt.c |
| lfind.c |
| strcasecmp.c |
| strtoul.c |
| strtoull.c) |
| |
| set(port_USED_FILES ${port_SOURCES} ${port_HEADERS}) |
| |
| if(NOT HAVE_GETOPT) |
| list(APPEND port_USED_FILES getopt.c) |
| endif() |
| if(NOT HAVE_LFIND) |
| list(APPEND port_USED_FILES lfind.c) |
| endif() |
| if(MSVC AND NOT HAVE_SNPRINTF) |
| list(APPEND port_USED_FILES snprintf.c) |
| endif() |
| if(NOT HAVE_STRCASECMP) |
| list(APPEND port_USED_FILES strcasecmp.c) |
| endif() |
| if(NOT HAVE_STRTOUL) |
| list(APPEND port_USED_FILES strtoul.c) |
| endif() |
| if(NOT HAVE_STRTOULL) |
| list(APPEND port_USED_FILES strtoull.c) |
| endif() |
| |
| add_library(port STATIC ${port_USED_FILES}) |
| |
| foreach(file ${port_USED_FILES}) |
| list(APPEND tiff_port_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/${file}") |
| endforeach() |
| set(tiff_port_SOURCES ${tiff_port_SOURCES} PARENT_SCOPE) |