- work around debian obsoletes handling for now
[platform/upstream/libsolv.git] / tools / CMakeLists.txt
1 #
2 # CMakeLists.txt for sat-solver/tools
3 #
4
5 ADD_LIBRARY(toolstuff STATIC common_write.c)
6
7 IF ( NOT DEBIAN )
8 ADD_EXECUTABLE(rpmdb2solv rpmdb2solv.c)
9 TARGET_LINK_LIBRARIES(rpmdb2solv toolstuff satsolverext satsolver ${RPMDB_LIBRARY} ${EXPAT_LIBRARY})
10
11 ADD_EXECUTABLE(rpms2solv rpms2solv.c)
12 TARGET_LINK_LIBRARIES(rpms2solv toolstuff satsolverext satsolver ${RPMDB_LIBRARY})
13
14 ADD_EXECUTABLE(findfileconflicts findfileconflicts.c)
15 TARGET_LINK_LIBRARIES(findfileconflicts satsolverext satsolver ${RPMDB_LIBRARY})
16
17 ENDIF ( NOT DEBIAN )
18
19 ADD_EXECUTABLE(rpmmd2solv rpmmd2solv.c)
20 TARGET_LINK_LIBRARIES(rpmmd2solv toolstuff satsolverext satsolver ${EXPAT_LIBRARY} ${ZLIB_LIBRARY})
21
22 ADD_EXECUTABLE(helix2solv helix2solv.c)
23 TARGET_LINK_LIBRARIES(helix2solv toolstuff satsolverext satsolver ${EXPAT_LIBRARY})
24
25 ADD_EXECUTABLE(susetags2solv susetags2solv.c)
26 TARGET_LINK_LIBRARIES(susetags2solv toolstuff satsolverext satsolver ${ZLIB_LIBRARY})
27
28 ADD_EXECUTABLE(updateinfoxml2solv updateinfoxml2solv.c)
29 TARGET_LINK_LIBRARIES(updateinfoxml2solv toolstuff satsolverext satsolver ${EXPAT_LIBRARY})
30
31 ADD_EXECUTABLE(deltainfoxml2solv deltainfoxml2solv.c)
32 TARGET_LINK_LIBRARIES(deltainfoxml2solv toolstuff satsolverext satsolver ${EXPAT_LIBRARY})
33
34 ADD_EXECUTABLE(repomdxml2solv repomdxml2solv.c)
35 TARGET_LINK_LIBRARIES(repomdxml2solv toolstuff satsolverext satsolver ${EXPAT_LIBRARY})
36
37 ADD_EXECUTABLE(installcheck installcheck.c)
38 TARGET_LINK_LIBRARIES(installcheck satsolverext satsolver ${EXPAT_LIBRARY} ${ZLIB_LIBRARY})
39
40 ADD_EXECUTABLE(patchcheck patchcheck.c)
41 TARGET_LINK_LIBRARIES(patchcheck satsolverext satsolver ${EXPAT_LIBRARY} ${ZLIB_LIBRARY})
42
43 ADD_EXECUTABLE(dumpsolv dumpsolv.c )
44 TARGET_LINK_LIBRARIES(dumpsolv satsolver)
45
46 ADD_EXECUTABLE(mergesolv mergesolv.c )
47 TARGET_LINK_LIBRARIES(mergesolv toolstuff satsolverext satsolver)
48
49 install(TARGETS
50     mergesolv
51     dumpsolv
52     susetags2solv
53     helix2solv
54     rpmmd2solv
55     updateinfoxml2solv
56     deltainfoxml2solv
57     repomdxml2solv
58     DESTINATION ${BIN_INSTALL_DIR})
59
60 IF ( NOT DEBIAN )
61 install(TARGETS
62     rpmdb2solv
63     rpms2solv
64     DESTINATION ${BIN_INSTALL_DIR})
65 ENDIF ( NOT DEBIAN )
66
67 install(PROGRAMS
68    repo2solv.sh
69    DESTINATION ${BIN_INSTALL_DIR})