# xmp2exif: restoring metadata in exif format from xmp data. # Copyright (C) 2009 Bram de Greve # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. cmake_minimum_required(VERSION 2.6) project(xmp2exif) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH} ) find_package(Exiv2) set(xmp2exif_SRCS xmp2exif.cpp ) set(xmp2exif_LIBS ${EXIV2_LIBRARIES} ) if(WIN32) add_library(setargv STATIC IMPORTED) foreach(_config ${CMAKE_CONFIGURATION_TYPES}) string(TOUPPER ${_config} _CONFIG) set_property(TARGET setargv APPEND PROPERTY IMPORTED_CONFIGURATIONS ${_CONFIG}) set_target_properties(setargv PROPERTIES IMPORTED_LOCATION_${_CONFIG} "setargv.obj" ) endforeach() list(APPEND xmp2exif_LIBS setargv) endif() include_directories(${EXIV2_INCLUDE_DIRS}) add_executable(xmp2exif ${xmp2exif_SRCS}) target_link_libraries(xmp2exif ${xmp2exif_LIBS})