Factor out the filter code in preparation for nicely configuring where
[platform/upstream/libsolv.git] / tools / CMakeLists.txt
1
2 SET(rpmdb2solv_REPOS
3   rpmdb2solv.c
4   repo_rpmdb.h
5   repo_rpmdb.c
6   repo_write.c
7   common_write.c
8 )
9
10 ADD_EXECUTABLE( rpmdb2solv ${rpmdb2solv_REPOS} )
11 TARGET_LINK_LIBRARIES( rpmdb2solv satsolver ${DB43_LIBRARY})
12
13 SET(rpmmd2solv_REPOS rpmmd2solv.c repo_rpmmd.h repo_rpmmd.c repo_write.c common_write.c )
14 ADD_EXECUTABLE( rpmmd2solv ${rpmmd2solv_REPOS} )
15 TARGET_LINK_LIBRARIES( rpmmd2solv satsolver ${EXPAT_LIBRARY})
16
17 SET(helix2solv_REPOS helix2solv.c repo_helix.h repo_helix.c repo_write.c common_write.c )
18 ADD_EXECUTABLE( helix2solv ${helix2solv_REPOS} )
19 TARGET_LINK_LIBRARIES( helix2solv satsolver ${EXPAT_LIBRARY})
20
21 SET(susetags2solv_REPOS susetags2solv.c repo_susetags.h repo_susetags.c repo_write.c common_write.c)
22 ADD_EXECUTABLE( susetags2solv ${susetags2solv_REPOS} )
23 TARGET_LINK_LIBRARIES( susetags2solv satsolver)
24
25 SET(patchxml2solv_REPOS patchxml2solv.c repo_patchxml.h repo_patchxml.c repo_write.c common_write.c)
26 ADD_EXECUTABLE( patchxml2solv ${patchxml2solv_REPOS} )
27 TARGET_LINK_LIBRARIES( patchxml2solv satsolver ${EXPAT_LIBRARY})
28
29
30 SET(content2solv_REPOS
31   content2solv.c
32   repo_content.h
33   repo_content.c
34   repo_write.c common_write.c)
35 ADD_EXECUTABLE( content2solv ${content2solv_REPOS} )
36 TARGET_LINK_LIBRARIES( content2solv satsolver)
37
38
39 SET(dumpsolv_REPOS dumpsolv.c)
40 ADD_EXECUTABLE( dumpsolv ${dumpsolv_REPOS} )
41 TARGET_LINK_LIBRARIES( dumpsolv satsolver)
42
43 SET(mergesolv_REPOS mergesolv.c repo_write.c common_write.c)
44 ADD_EXECUTABLE( mergesolv ${mergesolv_REPOS} )
45 TARGET_LINK_LIBRARIES( mergesolv satsolver)
46
47 #SET(dumpattr_REPOS dumpattr.c)
48 #ADD_EXECUTABLE( dumpattr ${dumpattr_REPOS} )
49 #TARGET_LINK_LIBRARIES( dumpattr satsolver)
50
51 #ADD_EXECUTABLE( addstore addstore.c repo_write.c )
52 #TARGET_LINK_LIBRARIES( addstore satsolver )
53
54 install(TARGETS
55                 mergesolv 
56                 dumpsolv 
57                 patchxml2solv 
58                 susetags2solv
59                 helix2solv 
60                 rpmmd2solv 
61                 rpmdb2solv
62                 content2solv
63    DESTINATION ${BIN_INSTALL_DIR} )
64
65 install(PROGRAMS repo2solv.sh DESTINATION ${BIN_INSTALL_DIR} )