Factor out the filter code in preparation for nicely configuring where
[platform/upstream/libsolv.git] / tools / CMakeLists.txt
index 91eb86d..65a9f6f 100644 (file)
@@ -4,24 +4,25 @@ SET(rpmdb2solv_REPOS
   repo_rpmdb.h
   repo_rpmdb.c
   repo_write.c
+  common_write.c
 )
 
 ADD_EXECUTABLE( rpmdb2solv ${rpmdb2solv_REPOS} )
 TARGET_LINK_LIBRARIES( rpmdb2solv satsolver ${DB43_LIBRARY})
 
-SET(rpmmd2solv_REPOS rpmmd2solv.c repo_rpmmd.h repo_rpmmd.c repo_write.c )
+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})
 
-SET(helix2solv_REPOS helix2solv.c repo_helix.h repo_helix.c repo_write.c )
+SET(helix2solv_REPOS helix2solv.c repo_helix.h repo_helix.c repo_write.c common_write.c )
 ADD_EXECUTABLE( helix2solv ${helix2solv_REPOS} )
 TARGET_LINK_LIBRARIES( helix2solv satsolver ${EXPAT_LIBRARY})
 
-SET(susetags2solv_REPOS susetags2solv.c repo_susetags.h repo_susetags.c repo_write.c attr_store.c)
+SET(susetags2solv_REPOS susetags2solv.c repo_susetags.h repo_susetags.c repo_write.c common_write.c)
 ADD_EXECUTABLE( susetags2solv ${susetags2solv_REPOS} )
 TARGET_LINK_LIBRARIES( susetags2solv satsolver)
 
-SET(patchxml2solv_REPOS patchxml2solv.c repo_patchxml.h repo_patchxml.c repo_write.c)
+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})
 
@@ -30,7 +31,7 @@ SET(content2solv_REPOS
   content2solv.c
   repo_content.h
   repo_content.c
-  repo_write.c)
+  repo_write.c common_write.c)
 ADD_EXECUTABLE( content2solv ${content2solv_REPOS} )
 TARGET_LINK_LIBRARIES( content2solv satsolver)
 
@@ -39,15 +40,18 @@ SET(dumpsolv_REPOS dumpsolv.c)
 ADD_EXECUTABLE( dumpsolv ${dumpsolv_REPOS} )
 TARGET_LINK_LIBRARIES( dumpsolv satsolver)
 
-SET(mergesolv_REPOS mergesolv.c repo_write.c)
+SET(mergesolv_REPOS mergesolv.c repo_write.c common_write.c)
 ADD_EXECUTABLE( mergesolv ${mergesolv_REPOS} )
 TARGET_LINK_LIBRARIES( mergesolv satsolver)
 
-SET(dumpattr_REPOS dumpattr.c attr_store.c)
-ADD_EXECUTABLE( dumpattr ${dumpattr_REPOS} )
-TARGET_LINK_LIBRARIES( dumpattr satsolver)
+#SET(dumpattr_REPOS dumpattr.c)
+#ADD_EXECUTABLE( dumpattr ${dumpattr_REPOS} )
+#TARGET_LINK_LIBRARIES( dumpattr satsolver)
 
-install(TARGETS dumpattr 
+#ADD_EXECUTABLE( addstore addstore.c repo_write.c )
+#TARGET_LINK_LIBRARIES( addstore satsolver )
+
+install(TARGETS
                 mergesolv 
                 dumpsolv 
                 patchxml2solv 
@@ -55,6 +59,7 @@ install(TARGETS dumpattr
                 helix2solv 
                 rpmmd2solv 
                 rpmdb2solv
+               content2solv
    DESTINATION ${BIN_INSTALL_DIR} )
 
 install(PROGRAMS repo2solv.sh DESTINATION ${BIN_INSTALL_DIR} )