2 solv_xfopen.c testcase.c)
4 SET (libsolvext_HEADERS
5 tools_util.h solv_xfopen.h testcase.h)
8 SET (libsolvext_SRCS ${libsolvext_SRCS}
9 pool_fileconflicts.c repo_rpmdb.c)
10 SET (libsolvext_HEADERS ${libsolvext_HEADERS}
11 pool_fileconflicts.h repo_rpmdb.h)
15 SET (libsolvext_SRCS ${libsolvext_SRCS}
16 repo_repomdxml.c repo_rpmmd.c
17 repo_deltainfoxml.c repo_updateinfoxml.c)
18 SET (libsolvext_HEADERS ${libsolvext_HEADERS}
19 repo_repomdxml.h repo_rpmmd.h
20 repo_deltainfoxml.h repo_updateinfoxml.h)
24 SET (libsolvext_SRCS ${libsolvext_SRCS}
25 repo_content.c repo_products.c repo_releasefile_products.c
26 repo_susetags.c repo_zyppdb.c)
27 SET (libsolvext_HEADERS ${libsolvext_HEADERS}
28 repo_content.h repo_products.h repo_releasefile_products.h
29 repo_susetags.h repo_zyppdb.h)
30 ENDIF (ENABLE_SUSEREPO)
33 SET (libsolvext_SRCS ${libsolvext_SRCS}
35 SET (libsolvext_HEADERS ${libsolvext_HEADERS}
40 SET (libsolvext_SRCS ${libsolvext_SRCS}
42 SET (libsolvext_HEADERS ${libsolvext_HEADERS}
47 SET (libsolvext_SRCS ${libsolvext_SRCS}
49 SET (libsolvext_HEADERS ${libsolvext_HEADERS}
51 ENDIF (ENABLE_HELIXREPO)
54 SET (libsolvext_SRCS ${libsolvext_SRCS}
56 SET (libsolvext_HEADERS ${libsolvext_HEADERS}
58 ENDIF (ENABLE_MDKREPO)
61 SET (libsolvext_SRCS ${libsolvext_SRCS}
63 SET (libsolvext_HEADERS ${libsolvext_HEADERS}
65 ENDIF (ENABLE_ARCHREPO)
68 SET (libsolvext_SRCS ${libsolvext_SRCS}
70 SET (libsolvext_HEADERS ${libsolvext_HEADERS}
72 ENDIF (ENABLE_CUDFREPO)
74 SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
75 SET (CMAKE_SHARED_LINKER_FLAGS "${LINK_FLAGS} -Wl,--version-script=${CMAKE_SOURCE_DIR}/ext/libsolvext.ver")
78 ADD_LIBRARY (libsolvext STATIC ${libsolvext_SRCS})
80 ADD_LIBRARY (libsolvext SHARED ${libsolvext_SRCS})
81 ENDIF (DISABLE_SHARED)
83 SET_TARGET_PROPERTIES(libsolvext PROPERTIES OUTPUT_NAME "solvext")
84 SET_TARGET_PROPERTIES(libsolvext PROPERTIES SOVERSION ${LIBSOLVEXT_SOVERSION})
86 INSTALL (FILES ${libsolvext_HEADERS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/solv")
87 INSTALL (TARGETS libsolvext LIBRARY DESTINATION ${LIB_INSTALL_DIR} ARCHIVE DESTINATION ${LIB_INSTALL_DIR})
89 IF (ENABLE_STATIC AND NOT DISABLE_SHARED)
90 ADD_LIBRARY (libsolvext_static STATIC ${libsolvext_SRCS})
91 SET_TARGET_PROPERTIES(libsolvext_static PROPERTIES OUTPUT_NAME "solvext")
92 SET_TARGET_PROPERTIES(libsolvext_static PROPERTIES SOVERSION ${LIBSOLVEXT_SOVERSION})
93 INSTALL (TARGETS libsolvext_static LIBRARY DESTINATION ${LIB_INSTALL_DIR} ARCHIVE DESTINATION ${LIB_INSTALL_DIR})
94 ENDIF (ENABLE_STATIC AND NOT DISABLE_SHARED)