SET(liblibsolvext_SRCS repo_content.c repo_deltainfoxml.c repo_helix.c repo_products.c repo_releasefile_products.c repo_repomdxml.c repo_rpmmd.c repo_susetags.c repo_updateinfoxml.c repo_write.c repo_zyppdb.c repo_deb.c sat_xfopen.c) IF ( NOT DEBIAN ) SET(liblibsolvext_SRCS ${liblibsolvext_SRCS} pool_fileconflicts.c repo_rpmdb.c) ENDIF (NOT DEBIAN) ADD_LIBRARY(libsolvext STATIC ${liblibsolvext_SRCS}) SET(liblibsolvext_HEADERS pool_fileconflicts.h repo_content.h repo_deltainfoxml.h repo_helix.h repo_products.h repo_releasefile_products.h repo_repomdxml.h repo_rpmdb.h repo_rpmmd.h repo_susetags.h repo_updateinfoxml.h repo_write.h repo_zyppdb.h tools_util.h repo_deb.h sat_xfopen.h) SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") INSTALL(FILES ${liblibsolvext_HEADERS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/libsolv") INSTALL(TARGETS libsolvext LIBRARY DESTINATION ${LIB_INSTALL_DIR} ARCHIVE DESTINATION ${LIB_INSTALL_DIR})