- work around debian obsoletes handling for now
[platform/upstream/libsolv.git] / ext / CMakeLists.txt
1 SET(libsatsolverext_SRCS
2     repo_content.c repo_deltainfoxml.c repo_helix.c repo_products.c
3     repo_releasefile_products.c repo_repomdxml.c repo_rpmmd.c
4     repo_susetags.c repo_updateinfoxml.c repo_write.c repo_zyppdb.c
5     repo_deb.c)
6 IF ( NOT DEBIAN )
7 SET(libsatsolverext_SRCS
8     ${libsatsolverext_SRCS} pool_fileconflicts.c repo_rpmdb.c)
9 ENDIF (NOT DEBIAN)
10
11 ADD_LIBRARY(satsolverext STATIC ${libsatsolverext_SRCS})
12
13 SET(libsatsolver_HEADERS
14     pool_fileconflicts.h repo_content.h repo_deltainfoxml.h repo_helix.h repo_products.h
15     repo_releasefile_products.h repo_repomdxml.h repo_rpmdb.h repo_rpmmd.h
16     repo_susetags.h repo_updateinfoxml.h repo_write.h repo_zyppdb.h
17     tools_util.h repo_deb.h)
18
19 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
20
21 INSTALL(FILES ${libsatsolverext_HEADERS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/satsolver")
22 INSTALL(TARGETS satsolverext LIBRARY DESTINATION ${LIB_INSTALL_DIR} ARCHIVE DESTINATION ${LIB_INSTALL_DIR})