Link geotag sample against exiv2-xmp

This commit is contained in:
Luis Díaz Más 2019-02-10 22:40:01 +01:00
parent 4265ac5e0f
commit 85c27ea3b4

View File

@ -72,7 +72,11 @@ install( TARGETS metacopy pathtest exiv2json RUNTIME DESTINATION ${CMAKE_INSTALL
if( EXPAT_FOUND )
add_executable( geotag geotag.cpp)
list(APPEND APPLICATIONS geotag)
target_link_libraries( geotag PRIVATE ${EXPAT_LIBRARIES})
target_link_libraries(geotag
PRIVATE
exiv2-xmp
${EXPAT_LIBRARIES}
)
target_include_directories(geotag PRIVATE ${EXPAT_INCLUDE_DIR})
target_include_directories(geotag PRIVATE ${CMAKE_SOURCE_DIR}/src) # To find unused.h