-
-SET(rpmdb2solv_SOURCES
+SET(rpmdb2solv_REPOS
rpmdb2solv.c
- source_rpmdb.h
- source_rpmdb.c
- source_write.c
+ repo_rpmdb.h
+ repo_rpmdb.c
+ repo_write.c
+ common_write.c
)
-ADD_EXECUTABLE( rpmdb2solv ${rpmdb2solv_SOURCES} )
-TARGET_LINK_LIBRARIES( rpmdb2solv satsolver ${DB43_LIBRARY})
+ADD_EXECUTABLE( rpmdb2solv ${rpmdb2solv_REPOS} )
+TARGET_LINK_LIBRARIES( rpmdb2solv satsolver ${RPMDB_LIBRARY})
+
+SET(rpms2solv_REPOS rpms2solv.c repo_rpmdb.h repo_rpmdb.c repo_write.c common_write.c )
+ADD_EXECUTABLE( rpms2solv ${rpms2solv_REPOS} )
+TARGET_LINK_LIBRARIES( rpms2solv satsolver ${RPMDB_LIBRARY})
-SET(rpmmd2solv_SOURCES rpmmd2solv.c source_rpmmd.h source_rpmmd.c source_write.c )
-ADD_EXECUTABLE( rpmmd2solv ${rpmmd2solv_SOURCES} )
-TARGET_LINK_LIBRARIES( rpmmd2solv satsolver ${EXPAT_LIBRARY})
+SET(rpmmd2solv_REPOS rpmmd2solv.c repo_rpmmd.h repo_rpmmd.c repo_write.c common_write.c )
+ADD_EXECUTABLE( rpmmd2solv ${rpmmd2solv_REPOS} )
+TARGET_LINK_LIBRARIES( rpmmd2solv satsolver ${EXPAT_LIBRARY} ${ZLIB_LIBRARY})
-SET(helix2solv_SOURCES helix2solv.c source_helix.h source_helix.c source_write.c )
-ADD_EXECUTABLE( helix2solv ${helix2solv_SOURCES} )
+SET(helix2solv_REPOS helix2solv.c repo_write.c common_write.c )
+ADD_EXECUTABLE( helix2solv ${helix2solv_REPOS} )
TARGET_LINK_LIBRARIES( helix2solv satsolver ${EXPAT_LIBRARY})
-SET(susetags2solv_SOURCES susetags2solv.c source_susetags.h source_susetags.c source_write.c)
-ADD_EXECUTABLE( susetags2solv ${susetags2solv_SOURCES} )
-TARGET_LINK_LIBRARIES( susetags2solv satsolver)
+SET(susetags2solv_REPOS susetags2solv.c repo_susetags.h repo_susetags.c repo_content.c repo_write.c common_write.c)
+ADD_EXECUTABLE( susetags2solv ${susetags2solv_REPOS} )
+TARGET_LINK_LIBRARIES( susetags2solv satsolver ${ZLIB_LIBRARY})
-SET(patchxml2solv_SOURCES patchxml2solv.c source_patchxml.h source_patchxml.c source_write.c)
-ADD_EXECUTABLE( patchxml2solv ${patchxml2solv_SOURCES} )
+SET(patchxml2solv_REPOS patchxml2solv.c repo_patchxml.h repo_patchxml.c repo_write.c common_write.c)
+ADD_EXECUTABLE( patchxml2solv ${patchxml2solv_REPOS} )
TARGET_LINK_LIBRARIES( patchxml2solv satsolver ${EXPAT_LIBRARY})
+SET(updateinfoxml2solv_REPOS updateinfoxml2solv.c repo_updateinfoxml.h repo_updateinfoxml.c repo_write.c common_write.c)
+ADD_EXECUTABLE( updateinfoxml2solv ${updateinfoxml2solv_REPOS} )
+TARGET_LINK_LIBRARIES( updateinfoxml2solv satsolver ${EXPAT_LIBRARY})
-SET(content2solv_SOURCES
- content2solv.c
- source_content.h
- source_content.c
- source_write.c)
-ADD_EXECUTABLE( content2solv ${content2solv_SOURCES} )
-TARGET_LINK_LIBRARIES( content2solv satsolver)
-
-
-SET(dumpsolv_SOURCES dumpsolv.c)
-ADD_EXECUTABLE( dumpsolv ${dumpsolv_SOURCES} )
+SET(dumpsolv_REPOS dumpsolv.c)
+ADD_EXECUTABLE( dumpsolv ${dumpsolv_REPOS} )
TARGET_LINK_LIBRARIES( dumpsolv satsolver)
-SET(mergesolv_SOURCES mergesolv.c source_write.c)
-ADD_EXECUTABLE( mergesolv ${mergesolv_SOURCES} )
-TARGET_LINK_LIBRARIES( mergesolv satsolver)
\ No newline at end of file
+SET(mergesolv_REPOS mergesolv.c repo_write.c common_write.c)
+ADD_EXECUTABLE( mergesolv ${mergesolv_REPOS} )
+TARGET_LINK_LIBRARIES( mergesolv satsolver)
+
+install(TARGETS
+ mergesolv
+ dumpsolv
+ patchxml2solv
+ susetags2solv
+ helix2solv
+ rpmmd2solv
+ rpmdb2solv
+ rpms2solv
+ DESTINATION ${BIN_INSTALL_DIR} )
+
+install(PROGRAMS repo2solv.sh DESTINATION ${BIN_INSTALL_DIR} )