####################################################################
MESSAGE(STATUS "Writing spec file...")
-CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/libzypp.spec.in ${CMAKE_BINARY_DIR}/package/libzypp.spec @ONLY)
+CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/libzypp.spec.cmake ${CMAKE_BINARY_DIR}/package/libzypp.spec @ONLY)
MACRO(add_subdir_sources subdir real_sources)
MESSAGE( STATUS "Adding ${subdir} to sources..." )
TARGET_LINK_LIBRARIES( zypp-querypool zypp )
TARGET_LINK_LIBRARIES( zypp-querypool xml2 )
-INSTALL(TARGETS zypp-querypool RUNTIME DESTINATION bin )
\ No newline at end of file
+INSTALL(TARGETS zypp-querypool RUNTIME DESTINATION ${LIB_INSTALL_DIR}/zypp )
\ No newline at end of file
TARGET_LINK_LIBRARIES(zypp ${ZLIB_LIBRARY} )
INSTALL(TARGETS zypp LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
+
+FILE(GLOB YUM_SCHEMA_FILES ${CMAKE_SOURCE_DIR}/zypp/parser/yum/schema/*.rng)
+INSTALL(FILES ${YUM_SCHEMA_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/zypp/schema/yum)
+
+FILE(GLOB XMLSTORE_SCHEMA_FILES ${CMAKE_SOURCE_DIR}/zypp/parser/yum/xmlstore/*.rng)
+INSTALL(FILES ${XMLSTORE_SCHEMA_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/zypp/schema/xmlstore)
+
+
+filelists.rng
+other.rng
+patch.rng
+primary.rng
+repomd.rng
+suse-primary.rng
+groups.rng patches.rng patterns.rng product.rng rpm-ns.rng