forgot register url
[platform/upstream/libsolv.git] / tools / CMakeLists.txt
1 #
2 # CMakeLists.txt for sat-solver/tools
3 #
4
5 ENABLE_TESTING()
6
7 ADD_SUBDIRECTORY(tests)
8
9 SET(rpmdb2solv_REPOS
10   rpmdb2solv.c
11   repo_rpmdb.h
12   repo_rpmdb.c
13   repo_products.c
14   repo_products.h
15   repo_write.c
16   common_write.c
17 )
18
19 ADD_EXECUTABLE( rpmdb2solv ${rpmdb2solv_REPOS} )
20 TARGET_LINK_LIBRARIES( rpmdb2solv satsolver ${RPMDB_LIBRARY} ${EXPAT_LIBRARY})
21
22 SET(rpms2solv_REPOS rpms2solv.c repo_rpmdb.h repo_rpmdb.c repo_write.c common_write.c )
23 ADD_EXECUTABLE( rpms2solv ${rpms2solv_REPOS} )
24 TARGET_LINK_LIBRARIES( rpms2solv satsolver ${RPMDB_LIBRARY})
25
26 SET(rpmmd2solv_REPOS rpmmd2solv.c repo_rpmmd.h repo_rpmmd.c repo_write.c common_write.c )
27 ADD_EXECUTABLE( rpmmd2solv ${rpmmd2solv_REPOS} )
28 TARGET_LINK_LIBRARIES( rpmmd2solv satsolver ${EXPAT_LIBRARY} ${ZLIB_LIBRARY})
29
30 SET(helix2solv_REPOS helix2solv.c repo_write.c common_write.c )
31 ADD_EXECUTABLE( helix2solv ${helix2solv_REPOS} )
32 TARGET_LINK_LIBRARIES( helix2solv satsolver ${EXPAT_LIBRARY})
33
34 SET(susetags2solv_REPOS susetags2solv.c repo_susetags.h repo_susetags.c repo_content.c repo_write.c common_write.c)
35 ADD_EXECUTABLE( susetags2solv ${susetags2solv_REPOS} )
36 TARGET_LINK_LIBRARIES( susetags2solv satsolver ${ZLIB_LIBRARY})
37
38 SET(patchxml2solv_REPOS patchxml2solv.c repo_patchxml.h repo_patchxml.c repo_write.c common_write.c)
39 ADD_EXECUTABLE( patchxml2solv ${patchxml2solv_REPOS} )
40 TARGET_LINK_LIBRARIES( patchxml2solv satsolver ${EXPAT_LIBRARY})
41
42 SET(updateinfoxml2solv_REPOS updateinfoxml2solv.c repo_updateinfoxml.h repo_updateinfoxml.c repo_write.c common_write.c)
43 ADD_EXECUTABLE( updateinfoxml2solv ${updateinfoxml2solv_REPOS} )
44 TARGET_LINK_LIBRARIES( updateinfoxml2solv satsolver ${EXPAT_LIBRARY})
45
46 SET(deltainfoxml2solv_REPOS deltainfoxml2solv.c repo_deltainfoxml.h repo_deltainfoxml.c repo_write.c common_write.c)
47 ADD_EXECUTABLE( deltainfoxml2solv ${deltainfoxml2solv_REPOS} )
48 TARGET_LINK_LIBRARIES( deltainfoxml2solv satsolver ${EXPAT_LIBRARY})
49
50 SET(repomdxml2solv_REPOS repomdxml2solv.c repo_repomdxml.h repo_repomdxml.c repo_write.c common_write.c)
51 ADD_EXECUTABLE( repomdxml2solv ${repomdxml2solv_REPOS} )
52 TARGET_LINK_LIBRARIES( repomdxml2solv satsolver ${EXPAT_LIBRARY})
53
54
55 SET(dumpsolv_REPOS dumpsolv.c)
56 ADD_EXECUTABLE( dumpsolv ${dumpsolv_REPOS} )
57 TARGET_LINK_LIBRARIES( dumpsolv satsolver)
58
59 SET(mergesolv_REPOS mergesolv.c repo_write.c common_write.c)
60 ADD_EXECUTABLE( mergesolv ${mergesolv_REPOS} )
61 TARGET_LINK_LIBRARIES( mergesolv satsolver)
62
63 install(TARGETS
64                 mergesolv
65                 dumpsolv
66                 patchxml2solv
67                 susetags2solv
68                 helix2solv
69                 rpmmd2solv
70                 rpmdb2solv
71                 rpms2solv
72                 updateinfoxml2solv
73                 deltainfoxml2solv
74                 repomdxml2solv
75    DESTINATION ${BIN_INSTALL_DIR} )
76
77 install(PROGRAMS repo2solv.sh DESTINATION ${BIN_INSTALL_DIR} )