1 ####################################################################
3 ####################################################################
5 INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
7 ####################################################################
9 ####################################################################
11 ADD_DEFINITIONS(-DLOCALEDIR=\\\"/usr/share/libzypp\\\" -DTEXTDOMAIN=\\\"zypp\\\" )
182 INSTALL( FILES ${zypp_HEADERS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/zypp" )
191 base/ReferenceCounted.cc
194 base/ExternalDataSource.cc
197 base/ProfilingFormater.cc
201 SET( zypp_base_HEADERS
205 base/DefaultFalseBool.h
206 base/DefaultIntegral.h
210 base/ExternalDataSource.h
226 base/ProfilingFormater.h
227 base/ProvideNumericId.h
229 base/ReferenceCounted.h
238 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/base
241 SET( zypp_capability_SRCS
242 capability/CapTraits.cc
243 capability/CapabilityImpl.cc
244 capability/FileCap.cc
246 capability/ModaliasCap.cc
247 capability/NamedCap.cc
248 capability/NullCap.cc
249 capability/SplitCap.cc
250 capability/VersionedCap.cc
253 SET( zypp_capability_HEADERS
254 capability/CapTraits.h
255 capability/Capabilities.h
256 capability/CapabilityImpl.h
257 capability/ConditionalCap.h
260 capability/ModaliasCap.h
261 capability/NamedCap.h
264 capability/SplitCap.h
265 capability/VersionedCap.h
269 ${zypp_capability_HEADERS}
270 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/capability
274 data/ResolvableData.cc
276 data/ResolvableDataConsumer.cc
279 SET( zypp_data_HEADERS
280 data/ResolvableData.h
282 data/ResolvableDataConsumer.h
287 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/data
290 SET( zypp_detail_SRCS
293 detail/MessageImpl.cc
294 detail/MessageImplIf.cc
295 detail/PackageImpl.cc
296 detail/PackageImplIf.cc
298 detail/PatchImplIf.cc
299 detail/PatternImpl.cc
300 detail/PatternImplIf.cc
301 detail/ProductImpl.cc
302 detail/ProductImplIf.cc
303 detail/ResObjectImplIf.cc
304 detail/ResolvableImpl.cc
306 detail/ScriptImplIf.cc
307 detail/SelectionImpl.cc
308 detail/SelectionImplIf.cc
309 detail/SrcPackageImpl.cc
310 detail/SrcPackageImplIf.cc
313 SET( zypp_detail_HEADERS
318 detail/MessageImplIf.h
320 detail/PackageImplIf.h
324 detail/PatternImplIf.h
326 detail/ProductImplIf.h
327 detail/ResImplTraits.h
328 detail/ResObjectFactory.h
329 detail/ResObjectImplIf.h
330 detail/ResolvableImpl.h
332 detail/ScriptImplIf.h
333 detail/SelectionImpl.h
334 detail/SelectionImplIf.h
335 detail/SrcPackageImpl.h
336 detail/SrcPackageImplIf.h
340 ${zypp_detail_HEADERS}
341 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/detail
345 media/MediaException.cc
347 media/MediaHandler.cc
358 media/MediaManager.cc
359 media/MediaUserAuth.cc
362 SET( zypp_media_HEADERS
369 media/MediaException.h
376 media/MediaUserAuth.h
382 ${zypp_media_HEADERS}
383 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/media
386 SET( zypp_media_proxyinfo_SRCS
387 media/proxyinfo/ProxyInfoSysconfig.cc
390 SET( zypp_media_proxyinfo_HEADERS
391 media/proxyinfo/ProxyInfoImpl.h
392 media/proxyinfo/ProxyInfoSysconfig.h
393 media/proxyinfo/ProxyInfos.h
397 ${zypp_media_proxyinfo_HEADERS}
398 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/media/proxyinfo
401 SET( zypp_parser_SRCS
402 parser/LibXMLHelper.cc
404 parser/XMLNodeIterator.cc
407 SET( zypp_parser_HEADERS
408 parser/LibXMLHelper.h
409 parser/ParserProgress.h
411 parser/XMLNodeIterator.h
412 parser/xml_parser_assert.h
416 ${zypp_parser_HEADERS}
417 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/parser
420 SET( zypp_parser_inifile_SRCS
421 parser/inifile/ini_file.cpp
424 SET( zypp_parser_inifile_HEADERS
425 parser/inifile/ini_file.hpp
429 ${zypp_parser_inifile_HEADERS}
430 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/parser/inifile
433 SET( zypp_parser_tagfile_SRCS
434 parser/tagfile/ParseException.cc
435 parser/tagfile/TagFileParser.cc
438 SET( zypp_parser_tagfile_HEADERS
439 parser/tagfile/ParseException.h
440 parser/tagfile/TagFileParser.h
444 ${zypp_parser_tagfile_HEADERS}
445 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/parser/tagfile
448 SET( zypp_parser_taggedfile_SRCS
449 parser/taggedfile/Rep.cc
450 parser/taggedfile/TagCacheRetrieval.cc
451 parser/taggedfile/TaggedFile.cc
452 parser/taggedfile/TaggedParser.cc
453 parser/taggedfile/TagParser.cc
454 parser/taggedfile/TagRetrievalPos.cc
457 SET( zypp_parser_taggedfile_HEADERS
458 parser/taggedfile/RepDef.h
459 parser/taggedfile/TagCacheRetrieval.h
460 parser/taggedfile/TaggedFile.h
461 parser/taggedfile/TagParser.h
462 parser/taggedfile/Rep.h
463 parser/taggedfile/TagCacheRetrievalPtr.h
464 parser/taggedfile/TaggedParser.h
465 parser/taggedfile/TagRetrievalPos.h
469 ${zypp_parser_taggedfile_HEADERS}
470 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/parser/taggedfile
474 SET( zypp_parser_xml_SRCS
476 parser/xml/ParseDef.cc
477 parser/xml/ParseDefConsume.cc
478 parser/xml/ParseDefException.cc
480 parser/xml/XmlString.cc
481 parser/xml/libxmlfwd.cc
484 SET( zypp_parser_xml_HEADERS
486 parser/xml/ParseDef.h
487 parser/xml/ParseDefConsume.h
488 parser/xml/ParseDefException.h
489 parser/xml/ParseDefTraits.h
491 parser/xml/XmlString.h
492 parser/xml/libxmlfwd.h
496 ${zypp_parser_xml_HEADERS}
497 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/parser/xml
500 SET( zypp_parser_xmlstore_SRCS
501 parser/xmlstore/XMLLanguageParser.cc
502 parser/xmlstore/XMLParserData.cc
503 parser/xmlstore/XMLPatchParser.cc
504 parser/xmlstore/XMLPatternParser.cc
505 parser/xmlstore/XMLProductParser.cc
506 parser/xmlstore/XMLResObjectParser.cc
507 parser/xmlstore/XMLSourceCacheParser.cc
510 SET( zypp_parser_xmlstore_HEADERS
511 parser/xmlstore/XMLLanguageParser.h
512 parser/xmlstore/XMLParserData.h
513 parser/xmlstore/XMLPatchParser.h
514 parser/xmlstore/XMLPatternParser.h
515 parser/xmlstore/XMLProductParser.h
516 parser/xmlstore/XMLResObjectParser.h
517 parser/xmlstore/XMLSourceCacheParser.h
518 parser/xmlstore/schemanames.h
522 ${zypp_parser_xmlstore_HEADERS}
523 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/parser/xmlstore
526 SET( zypp_parser_yum_SRCS
527 parser/yum/YUMFileListParser.cc
528 parser/yum/YUMGroupParser.cc
529 parser/yum/YUMOtherParser.cc
530 parser/yum/YUMParserData.cc
531 parser/yum/YUMPatchParser.cc
532 parser/yum/YUMPatchesParser.cc
533 parser/yum/YUMPatternParser.cc
534 parser/yum/YUMPrimaryParser.cc
535 parser/yum/YUMProductParser.cc
536 parser/yum/YUMRepomdParser.cc
539 SET( zypp_parser_yum_HEADERS
540 parser/yum/YUMFileListParser.h
541 parser/yum/YUMGroupParser.h
542 parser/yum/YUMOtherParser.h
543 parser/yum/YUMParser.h
544 parser/yum/YUMParserData.h
545 parser/yum/YUMPatchParser.h
546 parser/yum/YUMPatchesParser.h
547 parser/yum/YUMPatternParser.h
548 parser/yum/YUMPrimaryParser.h
549 parser/yum/YUMProductParser.h
550 parser/yum/YUMRepomdParser.h
551 parser/yum/schemanames.h
555 ${zypp_parser_yum_HEADERS}
556 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/parser/yum
559 SET( zypp_parser_yum2_SRCS
560 parser/yum2/YUMPrimaryParser.cc
563 SET( zypp_parser_yum2_HEADERS
564 parser/yum2/YUMPrimaryParser.h
568 ${zypp_parser_yum2_HEADERS}
569 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/parser/yum2
573 pool/GetResolvablesToInsDel.cc
578 SET( zypp_pool_HEADERS
579 pool/GetResolvablesToInsDel.h
587 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/pool
590 SET( zypp_solver_detail_SRCS
591 solver/detail/Helper.cc
592 solver/detail/Importance.cc
593 solver/detail/InstallOrder.cc
594 solver/detail/Pending.cc
595 solver/detail/ProblemSolutionIgnore.cc
596 solver/detail/ProblemSolutionInstall.cc
597 solver/detail/ProblemSolutionKeep.cc
598 solver/detail/ProblemSolutionUninstall.cc
599 solver/detail/ProblemSolutionUnlock.cc
600 solver/detail/QueueItem.cc
601 solver/detail/QueueItemBranch.cc
602 solver/detail/QueueItemConflict.cc
603 solver/detail/QueueItemEstablish.cc
604 solver/detail/QueueItemGroup.cc
605 solver/detail/QueueItemInstall.cc
606 solver/detail/QueueItemRequire.cc
607 solver/detail/QueueItemUninstall.cc
608 solver/detail/Resolver.cc
609 solver/detail/ResolverContext.cc
610 solver/detail/ResolverInfo.cc
611 solver/detail/ResolverInfoChildOf.cc
612 solver/detail/ResolverInfoConflictsWith.cc
613 solver/detail/ResolverInfoContainer.cc
614 solver/detail/ResolverInfoDependsOn.cc
615 solver/detail/ResolverInfoMisc.cc
616 solver/detail/ResolverInfoMissingReq.cc
617 solver/detail/ResolverInfoNeededBy.cc
618 solver/detail/ResolverInfoObsoletes.cc
619 solver/detail/ResolverQueue.cc
620 solver/detail/ResolverUpgrade.cc
621 solver/detail/Resolver_problems.cc
622 solver/detail/SolutionAction.cc
623 solver/detail/Testcase.cc
624 solver/detail/ContextPool.cc
627 SET( zypp_solver_detail_HEADERS
628 solver/detail/Helper.h
629 solver/detail/Importance.h
630 solver/detail/InstallOrder.h
631 solver/detail/Pending.h
632 solver/detail/ProblemSolutionIgnore.h
633 solver/detail/ProblemSolutionInstall.h
634 solver/detail/ProblemSolutionKeep.h
635 solver/detail/ProblemSolutionUninstall.h
636 solver/detail/ProblemSolutionUnlock.h
637 solver/detail/QueueItem.h
638 solver/detail/QueueItemBranch.h
639 solver/detail/QueueItemConflict.h
640 solver/detail/QueueItemEstablish.h
641 solver/detail/QueueItemGroup.h
642 solver/detail/QueueItemInstall.h
643 solver/detail/QueueItemRequire.h
644 solver/detail/QueueItemUninstall.h
645 solver/detail/Resolver.h
646 solver/detail/ResolverContext.h
647 solver/detail/ResolverInfo.h
648 solver/detail/ResolverInfoChildOf.h
649 solver/detail/ResolverInfoConflictsWith.h
650 solver/detail/ResolverInfoContainer.h
651 solver/detail/ResolverInfoDependsOn.h
652 solver/detail/ResolverInfoMisc.h
653 solver/detail/ResolverInfoMissingReq.h
654 solver/detail/ResolverInfoNeededBy.h
655 solver/detail/ResolverInfoObsoletes.h
656 solver/detail/ResolverQueue.h
657 solver/detail/SolutionAction.h
658 solver/detail/Testcase.h
659 solver/detail/Types.h
660 solver/detail/ContextPool.h
664 ${zypp_solver_detail_HEADERS}
665 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/solver/detail
668 SET( zypp_source_SRCS
669 source/Applydeltarpm.cc
671 source/PackageDelta.cc
672 source/PackageProvider.cc
675 source/SourceProvideFile.cc
676 source/SUSEMediaVerifier.cc
679 SET( zypp_source_HEADERS
680 source/Applydeltarpm.h
683 source/PackageDelta.h
684 source/PackageProvider.h
687 source/SourceProvideFile.h
688 source/SUSEMediaVerifier.h
692 ${zypp_source_HEADERS}
693 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/source
696 SET( zypp_source_plaindir_SRCS
697 source/plaindir/PlaindirImpl.cc
700 SET( zypp_source_plaindir_HEADERS
701 source/plaindir/PlaindirImpl.h
705 ${zypp_source_plaindir_HEADERS}
706 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/source/plaindir
709 SET( zypp_source_susetags_SRCS
710 source/susetags/SUSETagsDownloader.cc
711 source/susetags/MediaMetadataParser.cc
712 source/susetags/MediaPatchesMetadataParser.cc
713 source/susetags/PackagesLangParser.cc
714 source/susetags/PackagesParser.cc
715 source/susetags/PatternTagFileParser.cc
716 source/susetags/ProductMetadataParser.cc
717 source/susetags/SelectionTagFileParser.cc
718 source/susetags/SuseTagsImpl.cc
719 source/susetags/SuseTagsPackageImpl.cc
720 source/susetags/SuseTagsPatternImpl.cc
721 source/susetags/SuseTagsProductImpl.cc
722 source/susetags/SuseTagsSelectionImpl.cc
723 source/susetags/SuseTagsSrcPackageImpl.cc
726 SET( zypp_source_susetags_HEADERS
727 source/susetags/SUSETagsDownloader.h
728 source/susetags/MediaMetadataParser.h
729 source/susetags/MediaPatchesMetadataParser.h
730 source/susetags/PackagesLangParser.h
731 source/susetags/PackagesParser.h
732 source/susetags/PatternTagFileParser.h
733 source/susetags/ProductMetadataParser.h
734 source/susetags/SelectionTagFileParser.h
735 source/susetags/SuseTagsImpl.h
736 source/susetags/SuseTagsPackageImpl.h
737 source/susetags/SuseTagsPatternImpl.h
738 source/susetags/SuseTagsProductImpl.h
739 source/susetags/SuseTagsSelectionImpl.h
740 source/susetags/SuseTagsSrcPackageImpl.h
744 ${zypp_source_susetags_HEADERS}
745 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/source/susetags
748 SET( zypp_source_yum_SRCS
749 source/yum/YUMAtomImpl.cc
750 source/yum/YUMGroupImpl.cc
751 source/yum/YUMMessageImpl.cc
752 source/yum/YUMPackageImpl.cc
753 source/yum/YUMPatchImpl.cc
754 source/yum/YUMPatternImpl.cc
755 source/yum/YUMProductImpl.cc
756 source/yum/YUMScriptImpl.cc
757 source/yum/YUMSourceImpl.cc
760 SET( zypp_source_yum_HEADERS
761 source/yum/YUMAtomImpl.h
762 source/yum/YUMGroupImpl.h
763 source/yum/YUMMessageImpl.h
764 source/yum/YUMPackageImpl.h
765 source/yum/YUMPatchImpl.h
766 source/yum/YUMPatternImpl.h
767 source/yum/YUMProductImpl.h
768 source/yum/YUMScriptImpl.h
769 source/yum/YUMSourceImpl.h
773 ${zypp_source_yum_HEADERS}
774 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/source/yum
777 SET( zypp_target_SRCS
779 target/CommitPackageCache.cc
780 target/CommitPackageCacheImpl.cc
781 target/CommitPackageCacheReadAhead.cc
782 target/TargetCallbackReceiver.cc
783 target/TargetException.cc
787 SET( zypp_target_HEADERS
789 target/CommitPackageCache.h
790 target/CommitPackageCacheImpl.h
791 target/CommitPackageCacheReadAhead.h
792 target/TargetCallbackReceiver.h
793 target/TargetException.h
798 ${zypp_target_HEADERS}
799 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/target
802 SET( zypp_target_hal_SRCS
804 target/hal/HalContext.cc
807 SET( zypp_target_hal_HEADERS
809 target/hal/HalContext.h
810 target/hal/HalException.h
814 ${zypp_target_hal_HEADERS}
815 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/target/hal
818 SET( zypp_target_modalias_SRCS
819 target/modalias/Modalias.cc
822 SET( zypp_target_modalias_HEADERS
823 target/modalias/Modalias.h
827 ${zypp_target_modalias_HEADERS}
828 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/target/modalias
831 SET( zypp_target_rpm_SRCS
832 target/rpm/BinHeader.cc
833 target/rpm/RpmCallbacks.cc
835 target/rpm/RpmException.cc
836 target/rpm/RpmHeader.cc
837 target/rpm/RpmPackageImpl.cc
838 target/rpm/librpmDb.cc
839 target/rpm/librpmDb.cv3.cc
842 SET( zypp_target_rpm_HEADERS
843 target/rpm/BinHeader.h
844 target/rpm/RpmCallbacks.h
846 target/rpm/RpmException.h
847 target/rpm/RpmHeader.h
848 target/rpm/RpmPackageImpl.h
850 target/rpm/librpmDb.h
854 ${zypp_target_rpm_HEADERS}
855 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/target/rpm
858 SET( zypp_target_store_SRCS
859 target/store/Backend.cc
860 target/store/PersistentStorage.cc
861 target/store/XMLFilesBackend.cc
862 target/store/serialize.cc
863 target/store/xml_escape_parser.cpp
866 SET( zypp_target_store_HEADERS
867 target/store/Backend.h
868 target/store/PersistentStorage.h
869 target/store/XMLFilesBackend.h
870 target/store/parser_utils.hpp
871 target/store/serialize.h
872 target/store/xml_escape_parser.hpp
876 ${zypp_target_store_HEADERS}
877 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/target/store
880 SET( zypp_target_store_xml_SRCS
881 target/store/xml/XMLAtomImpl.cc
882 target/store/xml/XMLMessageImpl.cc
883 target/store/xml/XMLPatchImpl.cc
884 target/store/xml/XMLPatternImpl.cc
885 target/store/xml/XMLProductImpl.cc
886 target/store/xml/XMLScriptImpl.cc
887 target/store/xml/XMLSelectionImpl.cc
890 SET( zypp_target_store_xml_HEADERS
891 target/store/xml/XMLAtomImpl.h
892 target/store/xml/XMLMessageImpl.h
893 target/store/xml/XMLPatchImpl.h
894 target/store/xml/XMLPatternImpl.h
895 target/store/xml/XMLProductImpl.h
896 target/store/xml/XMLScriptImpl.h
897 target/store/xml/XMLSelectionImpl.h
901 ${zypp_target_store_xml_HEADERS}
902 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/target/store/xml
905 SET( zypp_thread_SRCS
909 SET( zypp_thread_HEADERS
911 thread/MutexException.h
917 ${zypp_thread_HEADERS}
918 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/thread
923 ui/PatchContentsImpl.cc
924 ui/PatternContents.cc
925 ui/PatternContentsImpl.cc
926 ui/PatternExpander.cc
930 ui/UserWantedPackages.cc
935 ui/PatchContentsImpl.h
937 ui/PatternContentsImpl.h
942 ui/SelectableTraits.h
944 ui/UserWantedPackages.h
949 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/ui
957 SET( zypp_url_HEADERS
965 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/url
968 SET( zypp_zypp_detail_SRCS
969 zypp_detail/ZYppImpl.cc
972 SET( zypp_zypp_detail_HEADERS
973 zypp_detail/ZYppImpl.h
974 zypp_detail/ZYppReadOnlyHack.h
978 ${zypp_zypp_detail_HEADERS}
979 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/zypp/zypp_detail
984 ${zypp_capability_SRCS}
986 ${zypp_parser_tagfile_SRCS}
987 ${zypp_parser_taggedfile_SRCS}
988 ${zypp_parser_yum2_SRCS}
989 ${zypp_parser_xmlstore_SRCS}
990 ${zypp_parser_xml_SRCS}
991 ${zypp_parser_yum_SRCS}
992 ${zypp_parser_inifile_SRCS}
994 ${zypp_source_plaindir_SRCS}
995 ${zypp_source_yum_SRCS}
996 ${zypp_source_susetags_SRCS}
999 ${zypp_media_proxyinfo_SRCS}
1002 ${zypp_target_store_xml_SRCS}
1003 ${zypp_target_store_SRCS}
1004 ${zypp_target_rpm_SRCS}
1005 ${zypp_target_hal_SRCS}
1006 ${zypp_target_modalias_SRCS}
1008 ${zypp_solver_detail_SRCS}
1010 ${zypp_zypp_detail_SRCS}
1016 SET( zypp_lib_HEADERS
1017 ${zypp_source_plaindir_HEADERS}
1018 ${zypp_target_store_xml_HEADERS}
1019 ${zypp_parser_tagfile_HEADERS}
1020 ${zypp_parser_taggedfile_HEADERS}
1021 ${zypp_target_rpm_HEADERS}
1022 ${zypp_parser_yum2_HEADERS}
1023 ${zypp_capability_HEADERS}
1025 ${zypp_parser_xmlstore_HEADERS}
1026 ${zypp_data_HEADERS}
1027 ${zypp_media_HEADERS}
1028 ${zypp_target_hal_HEADERS}
1029 ${zypp_parser_xml_HEADERS}
1030 ${zypp_media_proxyinfo_HEADERS}
1031 ${zypp_source_yum_HEADERS}
1032 ${zypp_base_HEADERS}
1033 ${zypp_solver_detail_HEADERS}
1034 ${zypp_target_store_HEADERS}
1036 ${zypp_source_HEADERS}
1037 ${zypp_parser_HEADERS}
1039 ${zypp_zypp_detail_HEADERS}
1040 ${zypp_thread_HEADERS}
1041 ${zypp_source_susetags_HEADERS}
1042 ${zypp_target_modalias_HEADERS}
1043 ${zypp_target_HEADERS}
1044 ${zypp_parser_yum_HEADERS}
1045 ${zypp_parser_inifile_HEADERS}
1046 ${zypp_detail_HEADERS}
1047 ${zypp_pool_HEADERS}
1051 # Macro to set the log group for a list of files
1053 MACRO( SET_LOGGROUP _group _files )
1054 SET_SOURCE_FILES_PROPERTIES( ${_files} COMPILE_FLAGS -DZYPP_BASE_LOGGER_LOGGROUP=\\"${_group}\\" )
1055 FOREACH (_currentFile ${ARGN})
1056 #MESSAGE( STATUS "setting loggroup to \"${_group}\" for ${_currentFile}" )
1057 SET_SOURCE_FILES_PROPERTIES( ${_currentFile} COMPILE_FLAGS -DZYPP_BASE_LOGGER_LOGGROUP=\\"${_group}\\" )
1058 ENDFOREACH (_currentFile ${ARGN})
1059 ENDMACRO( SET_LOGGROUP )
1061 # Default loggroup for all files
1062 SET_LOGGROUP( "zypp" ${zypp_lib_SRCS} )
1064 # override some defaults
1065 SET_LOGGROUP( "plaindir" ${zypp_source_plaindir_SRCS} )
1066 SET_LOGGROUP( "xmlstore" ${zypp_target_store_xml_SRCS} )
1067 SET_LOGGROUP( "tagfile" ${zypp_parser_tagfile_SRCS} )
1068 #SET_LOGGROUP( "group" ${zypp_target_rpm_SRCS} )
1069 #SET_LOGGROUP( "group" ${zypp_parser_yum2_SRCS} )
1070 #SET_LOGGROUP( "group" ${zypp_capability_SRCS} )
1071 #SET_LOGGROUP( "group" ${zypp_ui_SRCS} )
1072 #SET_LOGGROUP( "group" ${zypp_parser_xmlstore_SRCS} )
1073 #SET_LOGGROUP( "group" ${zypp_data_SRCS} )
1074 #SET_LOGGROUP( "group" ${zypp_media_SRCS} )
1075 #SET_LOGGROUP( "group" ${zypp_target_hal_SRCS} )
1076 #SET_LOGGROUP( "group" ${zypp_parser_xml_SRCS} )
1077 #SET_LOGGROUP( "group" ${zypp_media_proxyinfo_SRCS} )
1078 #SET_LOGGROUP( "group" ${zypp_source_yum_SRCS} )
1079 #SET_LOGGROUP( "group" ${zypp_base_SRCS} )
1080 #SET_LOGGROUP( "group" ${zypp_solver_detail_SRCS} )
1081 #SET_LOGGROUP( "group" ${zypp_target_store_SRCS} )
1082 #SET_LOGGROUP( "group" ${zypp_url_SRCS} )
1083 #SET_LOGGROUP( "group" ${zypp_source_SRCS} )
1084 #SET_LOGGROUP( "group" ${zypp_parser_SRCS} )
1085 #SET_LOGGROUP( "group" ${zypp_SRCS} )
1086 #SET_LOGGROUP( "group" ${zypp_zypp_detail_SRCS} )
1087 #SET_LOGGROUP( "group" ${zypp_thread_SRCS} )
1088 #SET_LOGGROUP( "group" ${zypp_source_susetags_SRCS} )
1089 #SET_LOGGROUP( "group" ${zypp_target_modalias_SRCS} )
1090 #SET_LOGGROUP( "group" ${zypp_target_SRCS} )
1091 #SET_LOGGROUP( "group" ${zypp_parser_yum_SRCS} )
1092 #SET_LOGGROUP( "group" ${zypp_detail_SRCS} )
1093 #SET_LOGGROUP( "group" ${zypp_pool_SRCS} )
1096 ADD_LIBRARY(zypp SHARED ${zypp_lib_SRCS})
1097 SET_TARGET_PROPERTIES( zypp PROPERTIES VERSION "${LIBZYPP_VERSION_INFO}" )
1099 TARGET_LINK_LIBRARIES(zypp boost_filesystem boost_regex util )
1100 TARGET_LINK_LIBRARIES(zypp ${DBUS_LIBRARY} )
1101 TARGET_LINK_LIBRARIES(zypp dbus-glib-1 )
1102 TARGET_LINK_LIBRARIES(zypp ${GLIB_LIBRARY} )
1103 TARGET_LINK_LIBRARIES(zypp ${RPM_LIBRARY} )
1104 TARGET_LINK_LIBRARIES(zypp ${GETTEXT_LIBRARIES} )
1105 TARGET_LINK_LIBRARIES(zypp ${HAL_LIBRARY} )
1106 TARGET_LINK_LIBRARIES(zypp ${HAL_STORAGE_LIBRARY} )
1107 TARGET_LINK_LIBRARIES(zypp ${CURL_LIBRARY} )
1108 TARGET_LINK_LIBRARIES(zypp ${LIBXML_LIBRARY} )
1109 TARGET_LINK_LIBRARIES(zypp ${SQLITE_LIBRARY} )
1110 TARGET_LINK_LIBRARIES(zypp ${ZLIB_LIBRARY} )
1112 INSTALL(TARGETS zypp LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
1114 # install XML schemas
1115 FILE( GLOB YUM_SCHEMA_FILES ${CMAKE_SOURCE_DIR}/zypp/parser/yum/schema/*.rng )
1116 INSTALL(FILES ${YUM_SCHEMA_FILES} DESTINATION "${CMAKE_INSTALL_PREFIX}/share/zypp/schema/yum" )
1118 FILE( GLOB XMLSTORE_SCHEMA_FILES ${CMAKE_SOURCE_DIR}/zypp/parser/xmlstore/schema/*.rng )
1119 INSTALL(FILES ${XMLSTORE_SCHEMA_FILES} DESTINATION "${CMAKE_INSTALL_PREFIX}/share/zypp/schema/xmlstore" )