Fixes for MSVC case

v0.27.3
Luis Diaz Mas 8 years ago
parent ca9ef34ea0
commit 35c3e31958

@ -71,8 +71,8 @@ target_link_libraries( exiv2json PRIVATE exiv2lib)
install( TARGETS metacopy pathtest exiv2json RUNTIME DESTINATION bin) install( TARGETS metacopy pathtest exiv2json RUNTIME DESTINATION bin)
if (MSVC) if (MSVC)
target_sources(pathtest PRIVATE ../getopt_win32.c) target_sources(pathtest PRIVATE ../src/getopt_win32.c)
target_sources(metacopy PRIVATE ../getopt_win32.c) target_sources(metacopy PRIVATE ../src/getopt_win32.c)
endif() endif()
if( EXIV2_ENABLE_LIBXMP ) if( EXIV2_ENABLE_LIBXMP )

@ -282,6 +282,13 @@ set( EXIV2_SRC exiv2.cpp
utils.hpp utils.hpp
) )
add_executable( exiv2 ${EXIV2_SRC} )
target_link_libraries( exiv2 PRIVATE exiv2lib )
install(TARGETS exiv2 RUNTIME DESTINATION bin)
# TODO This should not be needed here! we need to fix the previous TODO
target_include_directories(exiv2 PRIVATE ${CMAKE_SOURCE_DIR}/include/)
# modify source lists to suit environment # modify source lists to suit environment
if(NOT EXV_HAVE_TIMEGM ) if(NOT EXV_HAVE_TIMEGM )
target_sources(exiv2lib PRIVATE localtime.c) target_sources(exiv2lib PRIVATE localtime.c)
@ -293,13 +300,6 @@ if (MSVC)
target_sources(exiv2 PRIVATE getopt_win32.c) target_sources(exiv2 PRIVATE getopt_win32.c)
endif() endif()
add_executable( exiv2 ${EXIV2_SRC} )
target_link_libraries( exiv2 PRIVATE exiv2lib )
install(TARGETS exiv2 RUNTIME DESTINATION bin)
# TODO This should not be needed here! we need to fix the previous TODO
target_include_directories(exiv2 PRIVATE ${CMAKE_SOURCE_DIR}/include/)
# ****************************************************************************** # ******************************************************************************
# Man page # Man page
INSTALL( FILES exiv2.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 ) INSTALL( FILES exiv2.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 )

Loading…
Cancel
Save