CMake: remove XMPSRC variable.

v0.27.3
Luis Díaz Más 7 years ago
parent 9e0bbd0205
commit f92030d650

@ -166,7 +166,7 @@ if(MSVC)
string(REGEX REPLACE "/MD" "/MT" ${variable} "${${variable}}") string(REGEX REPLACE "/MD" "/MT" ${variable} "${${variable}}")
endif() endif()
endforeach() endforeach()
endif() endif()
# remove /Ob2 and /Ob1 - they cause linker issues # remove /Ob2 and /Ob1 - they cause linker issues
set(obs /Ob2 /Ob1) set(obs /Ob2 /Ob1)

@ -1,35 +1,31 @@
# CMakeLists.txt exiv2/xmpsdk add_library(xmp STATIC
src/ExpatAdapter.cpp
# list files to be use to build XMPsdk src/MD5.cpp
set(XMPSRC src/ExpatAdapter.cpp src/ParseRDF.cpp
src/MD5.cpp src/UnicodeConversions.cpp
src/ParseRDF.cpp src/WXMPIterator.cpp
src/UnicodeConversions.cpp src/WXMPMeta.cpp
src/WXMPIterator.cpp src/WXMPUtils.cpp
src/WXMPMeta.cpp src/XML_Node.cpp
src/WXMPUtils.cpp src/XMPCore_Impl.cpp
src/XML_Node.cpp src/XMPIterator.cpp
src/XMPCore_Impl.cpp src/XMPMeta-GetSet.cpp
src/XMPIterator.cpp src/XMPMeta-Parse.cpp
src/XMPMeta-GetSet.cpp src/XMPMeta-Serialize.cpp
src/XMPMeta-Parse.cpp src/XMPMeta.cpp
src/XMPMeta-Serialize.cpp src/XMPUtils-FileInfo.cpp
src/XMPMeta.cpp src/XMPUtils.cpp
src/XMPUtils-FileInfo.cpp include/MD5.h
src/XMPUtils.cpp include/TXMPIterator.hpp
include/MD5.h include/TXMPMeta.hpp
include/TXMPIterator.hpp include/TXMPUtils.hpp
include/TXMPMeta.hpp include/XMP_Const.h
include/TXMPUtils.hpp include/XMP_Environment.h
include/XMP_Const.h include/XMP.incl_cpp
include/XMP_Environment.h include/XMPSDK.hpp
include/XMP.incl_cpp include/XMP_Version.h
include/XMPSDK.hpp
include/XMP_Version.h
) )
add_library(xmp STATIC ${XMPSRC})
target_link_libraries(xmp target_link_libraries(xmp
PRIVATE PRIVATE
${EXPAT_LIBRARY} ${EXPAT_LIBRARY}
@ -59,6 +55,3 @@ install(TARGETS xmp EXPORT exiv2Config
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
) )
# That's all Folks!
##

Loading…
Cancel
Save