You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
exiv2/xmpsdk/CMakeLists.txt

29 lines
1.1 KiB
CMake

# CMake build system for exiv2 library and executables
# Copyright 2012- Robin Mills <robin@clanmills.com>
# Copyright 2010-2012 Gilles Caulier <caulier dot gilles at gmail dot com>
# Copyright 2008 Patrick Spendrin <ps_ml at gmx dot de>
13 years ago
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
include(../CMake_msvc.txt)
msvc_runtime_configure(${EXIV2_ENABLE_SHARED})
FOREACH(_currentfile ${XMPSRC})
# http://www.openguru.com/2009/04/cmake-detecting-platformoperating.html
IF(NOT MSVC AND NOT CYGWIN AND NOT MSYS)
SET_SOURCE_FILES_PROPERTIES(${_currentfile} PROPERTIES COMPILE_FLAGS "-fPIC")
ENDIF(NOT MSVC AND NOT CYGWIN AND NOT MSYS)
ENDFOREACH(_currentfile ${XMPSRC})
13 years ago
IF( EXIV2_ENABLE_XMP AND EXIV2_ENABLE_LIBXMP )
ADD_LIBRARY( xmp STATIC ${XMPSRC} ${EXPAT_LIBRARIES} )
13 years ago
GET_TARGET_PROPERTY( XMPLIB xmp LOCATION )
TARGET_LINK_LIBRARIES(xmp ${EXPAT_LIBRARIES})
# SET( XMPLIB ${XMPLIB} PARENT_SCOPE )
# INSTALL(TARGETS xmp ${INSTALL_TARGET_STANDARD_ARGS} )
13 years ago
ENDIF( EXIV2_ENABLE_XMP AND EXIV2_ENABLE_LIBXMP )
# That's all Folks!
##