diff options
Diffstat (limited to 'tools/CMakeLists.txt')
-rw-r--r-- | tools/CMakeLists.txt | 101 |
1 files changed, 42 insertions, 59 deletions
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 576dae4..6502f4a 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -2,77 +2,60 @@ # CMakeLists.txt for sat-solver/tools # -# Let's not compile the same files ten times; this library is not installed -ADD_LIBRARY( toolstuff STATIC repo_write.c common_write.c ) +ADD_LIBRARY( toolstuff STATIC common_write.c ) -SET(rpmdb2solv_REPOS - rpmdb2solv.c - repo_rpmdb.c - repo_products.c - repo_zyppdb.c - repo_releasefile_products.c -) +ADD_EXECUTABLE(rpmdb2solv rpmdb2solv.c) +TARGET_LINK_LIBRARIES(rpmdb2solv toolstuff satsolverext satsolver ${RPMDB_LIBRARY} ${EXPAT_LIBRARY}) -ADD_EXECUTABLE( rpmdb2solv ${rpmdb2solv_REPOS} ) -TARGET_LINK_LIBRARIES( rpmdb2solv satsolver toolstuff ${RPMDB_LIBRARY} ${EXPAT_LIBRARY}) +ADD_EXECUTABLE(rpms2solv rpms2solv.c) +TARGET_LINK_LIBRARIES(rpms2solv toolstuff satsolverext satsolver ${RPMDB_LIBRARY}) -SET(rpms2solv_REPOS rpms2solv.c repo_rpmdb.c ) -ADD_EXECUTABLE( rpms2solv ${rpms2solv_REPOS} ) -TARGET_LINK_LIBRARIES( rpms2solv satsolver toolstuff ${RPMDB_LIBRARY}) +ADD_EXECUTABLE(rpmmd2solv rpmmd2solv.c) +TARGET_LINK_LIBRARIES(rpmmd2solv toolstuff satsolverext satsolver ${EXPAT_LIBRARY} ${ZLIB_LIBRARY}) -SET(rpmmd2solv_REPOS rpmmd2solv.c repo_rpmmd.c ) -ADD_EXECUTABLE( rpmmd2solv ${rpmmd2solv_REPOS} ) -TARGET_LINK_LIBRARIES( rpmmd2solv satsolver toolstuff ${EXPAT_LIBRARY} ${ZLIB_LIBRARY}) +ADD_EXECUTABLE(helix2solv helix2solv.c ${helix2solv_REPOS} ) +TARGET_LINK_LIBRARIES(helix2solv toolstuff satsolverext satsolver ${EXPAT_LIBRARY}) -SET(helix2solv_REPOS helix2solv.c ) -ADD_EXECUTABLE( helix2solv ${helix2solv_REPOS} ) -TARGET_LINK_LIBRARIES( helix2solv satsolver toolstuff ${EXPAT_LIBRARY}) +ADD_EXECUTABLE(susetags2solv susetags2solv.c) +TARGET_LINK_LIBRARIES(susetags2solv toolstuff satsolverext satsolver ${ZLIB_LIBRARY}) -SET(susetags2solv_REPOS susetags2solv.c repo_susetags.c repo_content.c ) -ADD_EXECUTABLE( susetags2solv ${susetags2solv_REPOS} ) -TARGET_LINK_LIBRARIES( susetags2solv satsolver toolstuff ${ZLIB_LIBRARY}) +ADD_EXECUTABLE(updateinfoxml2solv updateinfoxml2solv.c) +TARGET_LINK_LIBRARIES(updateinfoxml2solv toolstuff satsolverext satsolver ${EXPAT_LIBRARY}) -SET(updateinfoxml2solv_REPOS updateinfoxml2solv.c repo_updateinfoxml.c) -ADD_EXECUTABLE( updateinfoxml2solv ${updateinfoxml2solv_REPOS} ) -TARGET_LINK_LIBRARIES( updateinfoxml2solv satsolver toolstuff ${EXPAT_LIBRARY}) +ADD_EXECUTABLE(deltainfoxml2solv deltainfoxml2solv.c) +TARGET_LINK_LIBRARIES(deltainfoxml2solv toolstuff satsolverext satsolver ${EXPAT_LIBRARY}) -SET(deltainfoxml2solv_REPOS deltainfoxml2solv.c repo_deltainfoxml.c) -ADD_EXECUTABLE( deltainfoxml2solv ${deltainfoxml2solv_REPOS} ) -TARGET_LINK_LIBRARIES( deltainfoxml2solv satsolver toolstuff ${EXPAT_LIBRARY}) +ADD_EXECUTABLE(repomdxml2solv repomdxml2solv.c) +TARGET_LINK_LIBRARIES(repomdxml2solv toolstuff satsolverext satsolver ${EXPAT_LIBRARY}) -SET(repomdxml2solv_REPOS repomdxml2solv.c repo_repomdxml.c) -ADD_EXECUTABLE( repomdxml2solv ${repomdxml2solv_REPOS} ) -TARGET_LINK_LIBRARIES( repomdxml2solv satsolver toolstuff ${EXPAT_LIBRARY}) +ADD_EXECUTABLE(installcheck installcheck.c) +TARGET_LINK_LIBRARIES(installcheck satsolverext satsolver ${EXPAT_LIBRARY} ${ZLIB_LIBRARY}) -SET(installcheck_SOURCES installcheck.c repo_rpmmd.c repo_susetags.c) -ADD_EXECUTABLE(installcheck ${installcheck_SOURCES}) -TARGET_LINK_LIBRARIES(installcheck satsolver ${EXPAT_LIBRARY} ${ZLIB_LIBRARY}) +ADD_EXECUTABLE(patchcheck patchcheck.c) +TARGET_LINK_LIBRARIES(patchcheck satsolverext satsolver ${EXPAT_LIBRARY} ${ZLIB_LIBRARY}) -SET(patchcheck_SOURCES patchcheck.c repo_rpmmd.c repo_susetags.c repo_updateinfoxml.c) -ADD_EXECUTABLE(patchcheck ${patchcheck_SOURCES}) -TARGET_LINK_LIBRARIES(patchcheck satsolver ${EXPAT_LIBRARY} ${ZLIB_LIBRARY}) +ADD_EXECUTABLE(dumpsolv dumpsolv.c ) +TARGET_LINK_LIBRARIES(dumpsolv satsolver) -ADD_EXECUTABLE( dumpsolv dumpsolv.c ) -TARGET_LINK_LIBRARIES( dumpsolv satsolver) +ADD_EXECUTABLE(mergesolv mergesolv.c ) +TARGET_LINK_LIBRARIES(mergesolv toolstuff satsolverext satsolver) -ADD_EXECUTABLE( mergesolv mergesolv.c ) -TARGET_LINK_LIBRARIES( mergesolv satsolver toolstuff) - -SET(findfileconflicts_SOURCES findfileconflicts.c pool_fileconflicts.c repo_rpmdb.c ) -ADD_EXECUTABLE( findfileconflicts ${findfileconflicts_SOURCES} ) -TARGET_LINK_LIBRARIES( findfileconflicts satsolver ${RPMDB_LIBRARY} ${EXPAT_LIBRARY} ) +ADD_EXECUTABLE(findfileconflicts findfileconflicts.c) +TARGET_LINK_LIBRARIES(findfileconflicts satsolverext satsolver ${RPMDB_LIBRARY}) install(TARGETS - mergesolv - dumpsolv - susetags2solv - helix2solv - rpmmd2solv - rpmdb2solv - rpms2solv - updateinfoxml2solv - deltainfoxml2solv - repomdxml2solv - DESTINATION ${BIN_INSTALL_DIR} ) - -install(PROGRAMS repo2solv.sh DESTINATION ${BIN_INSTALL_DIR} ) + mergesolv + dumpsolv + susetags2solv + helix2solv + rpmmd2solv + rpmdb2solv + rpms2solv + updateinfoxml2solv + deltainfoxml2solv + repomdxml2solv + DESTINATION ${BIN_INSTALL_DIR}) + +install(PROGRAMS + repo2solv.sh + DESTINATION ${BIN_INSTALL_DIR}) |