|
|
@ -43,32 +43,31 @@ OPTION( EXIV2_ENABLE_BUILD_PO "Build translations files"
|
|
|
|
OPTION( EXIV2_ENABLE_VIDEO "Build video support into library" OFF )
|
|
|
|
OPTION( EXIV2_ENABLE_VIDEO "Build video support into library" OFF )
|
|
|
|
OPTION( EXIV2_ENABLE_WEBREADY "Build webready support into library" OFF )
|
|
|
|
OPTION( EXIV2_ENABLE_WEBREADY "Build webready support into library" OFF )
|
|
|
|
OPTION( EXIV2_ENABLE_DYNAMIC_RUNTIME "Use dynamic runtime (used for static libs)" OFF )
|
|
|
|
OPTION( EXIV2_ENABLE_DYNAMIC_RUNTIME "Use dynamic runtime (used for static libs)" OFF )
|
|
|
|
IF (WIN32)
|
|
|
|
if (WIN32)
|
|
|
|
OPTION( EXIV2_ENABLE_WIN_UNICODE "Use Unicode paths (wstring) on Windows" OFF )
|
|
|
|
OPTION( EXIV2_ENABLE_WIN_UNICODE "Use Unicode paths (wstring) on Windows" OFF )
|
|
|
|
OPTION( EXIV2_ENABLE_CURL "USE Libcurl for HttpIo" OFF )
|
|
|
|
OPTION( EXIV2_ENABLE_CURL "USE Libcurl for HttpIo" OFF )
|
|
|
|
OPTION( EXIV2_ENABLE_SSH "USE Libssh for SshIo" OFF )
|
|
|
|
OPTION( EXIV2_ENABLE_SSH "USE Libssh for SshIo" OFF )
|
|
|
|
ELSE()
|
|
|
|
else()
|
|
|
|
OPTION( EXIV2_ENABLE_CURL "USE Libcurl for HttpIo" ON )
|
|
|
|
OPTION( EXIV2_ENABLE_CURL "USE Libcurl for HttpIo" ON )
|
|
|
|
OPTION( EXIV2_ENABLE_SSH "USE Libssh for SshIo" ON )
|
|
|
|
OPTION( EXIV2_ENABLE_SSH "USE Libssh for SshIo" ON )
|
|
|
|
ENDIF()
|
|
|
|
endif()
|
|
|
|
OPTION( EXIV2_ENABLE_TOOLS "Build exiv2 executable" ON )
|
|
|
|
OPTION( EXIV2_ENABLE_TOOLS "Build exiv2 executable" ON )
|
|
|
|
|
|
|
|
|
|
|
|
include(config/findDependencies.cmake)
|
|
|
|
include(config/findDependencies.cmake)
|
|
|
|
include(config/compilerFlags.cmake)
|
|
|
|
include(config/compilerFlags.cmake)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( EXIV2_ENABLE_COMMERCIAL )
|
|
|
|
IF( EXIV2_ENABLE_COMMERCIAL )
|
|
|
|
|
|
|
|
SET (EXIV2_ENABLE_LENSDATA OFF)
|
|
|
|
SET (EXIV2_ENABLE_LENSDATA OFF)
|
|
|
|
SET (EXIV2_ENABLE_NLS OFF)
|
|
|
|
SET (EXIV2_ENABLE_NLS OFF)
|
|
|
|
ENDIF()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
if( MSVC )
|
|
|
|
if( MSVC )
|
|
|
|
set(CMAKE_DEBUG_POSTFIX "d")
|
|
|
|
set(CMAKE_DEBUG_POSTFIX "d")
|
|
|
|
endif( MSVC )
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
IF( EXIV2_ENABLE_XMP )
|
|
|
|
if( EXIV2_ENABLE_XMP )
|
|
|
|
SET( HAVE_XMP_TOOLKIT ON )
|
|
|
|
SET( HAVE_XMP_TOOLKIT ON )
|
|
|
|
ENDIF( EXIV2_ENABLE_XMP )
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
include( config/generateConfigFile.cmake )
|
|
|
|
include( config/generateConfigFile.cmake )
|
|
|
|
include_directories(${CMAKE_BINARY_DIR}) # Make the exv_conf.h file visible for the full project
|
|
|
|
include_directories(${CMAKE_BINARY_DIR}) # Make the exv_conf.h file visible for the full project
|
|
|
@ -80,13 +79,13 @@ if( EXIV2_ENABLE_XMP )
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
ADD_SUBDIRECTORY( src )
|
|
|
|
ADD_SUBDIRECTORY( src )
|
|
|
|
|
|
|
|
|
|
|
|
IF( EXIV2_ENABLE_BUILD_SAMPLES )
|
|
|
|
if( EXIV2_ENABLE_BUILD_SAMPLES )
|
|
|
|
ADD_SUBDIRECTORY( samples )
|
|
|
|
ADD_SUBDIRECTORY( samples )
|
|
|
|
ENDIF( EXIV2_ENABLE_BUILD_SAMPLES )
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
IF( EXIV2_ENABLE_BUILD_PO )
|
|
|
|
if( EXIV2_ENABLE_BUILD_PO )
|
|
|
|
ADD_SUBDIRECTORY( po )
|
|
|
|
ADD_SUBDIRECTORY( po )
|
|
|
|
ENDIF( EXIV2_ENABLE_BUILD_PO )
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
##
|
|
|
|
##
|
|
|
|
# tests
|
|
|
|
# tests
|
|
|
@ -98,12 +97,12 @@ ADD_CUSTOM_TARGET(geotag-test COMMAND env EXIV2_BINDIR="${CMAKE_BINARY_DIR}"/bin
|
|
|
|
# effectively does a make doc on the root directory
|
|
|
|
# effectively does a make doc on the root directory
|
|
|
|
# has to run 'make config' and './configure'
|
|
|
|
# has to run 'make config' and './configure'
|
|
|
|
# and copy bin/taglist to <exiv2dir>/bin/taglist for use by 'make doc'
|
|
|
|
# and copy bin/taglist to <exiv2dir>/bin/taglist for use by 'make doc'
|
|
|
|
IF( MINGW OR UNIX OR APPLE)
|
|
|
|
if( MINGW OR UNIX OR APPLE)
|
|
|
|
ADD_CUSTOM_TARGET(doc
|
|
|
|
ADD_CUSTOM_TARGET(doc
|
|
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/doc"
|
|
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/doc"
|
|
|
|
COMMAND chmod +x ./cmake_doc.sh
|
|
|
|
COMMAND chmod +x ./cmake_doc.sh
|
|
|
|
COMMAND ./cmake_doc.sh "${CMAKE_BINARY_DIR}"
|
|
|
|
COMMAND ./cmake_doc.sh "${CMAKE_BINARY_DIR}"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
ENDIF()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
INCLUDE( config/printSummary.cmake )
|
|
|
|
INCLUDE( config/printSummary.cmake )
|
|
|
|