Warning, /education/kalzium/libscience/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 add_subdirectory(data) 0002 add_subdirectory(tests) 0003 0004 add_library(science SHARED) 0005 0006 set_target_properties(science PROPERTIES 0007 VERSION ${KALZIUMLIB_VERSION} 0008 SOVERSION ${KALZIUMLIB_SOVERSION} 0009 ) 0010 0011 generate_export_header(science) 0012 0013 ecm_qt_declare_logging_category(science 0014 HEADER kalzium_libscience_debug.h 0015 IDENTIFIER KALZIUM_LIBSCIENCE_LOG 0016 CATEGORY_NAME org.kde.kalzium.libscience 0017 DESCRIPTION "Kalzium (libscience)" 0018 EXPORT KALZIUM 0019 ) 0020 0021 target_sources(science PRIVATE 0022 element.cpp 0023 spectrum.cpp 0024 isotope.cpp 0025 spectrumparser.cpp 0026 elementparser.cpp 0027 isotopeparser.cpp 0028 chemicaldataobject.cpp 0029 moleculeparser.cpp 0030 parser.cpp 0031 psetables.cpp 0032 element.h 0033 spectrum.h 0034 isotope.h 0035 spectrumparser.h 0036 elementparser.h 0037 isotopeparser.h 0038 chemicaldataobject.h 0039 moleculeparser.h 0040 parser.h 0041 psetables.h 0042 ) 0043 0044 target_link_libraries(science 0045 PUBLIC 0046 KF${KF_MAJOR_VERSION}::UnitConversion 0047 KF${KF_MAJOR_VERSION}::WidgetsAddons 0048 KF${KF_MAJOR_VERSION}::I18n 0049 Qt::Xml 0050 ) 0051 if (QT_MAJOR_VERSION STREQUAL "6") 0052 target_link_libraries(science PUBLIC Qt6::Core5Compat) 0053 endif() 0054 0055 install(TARGETS science ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 0056 0057 install(FILES 0058 chemicaldataobject.h 0059 element.h 0060 elementparser.h 0061 isotope.h 0062 isotopeparser.h 0063 ${CMAKE_CURRENT_BINARY_DIR}/science_export.h 0064 moleculeparser.h 0065 parser.h 0066 spectrum.h 0067 spectrumparser.h 0068 psetables.h 0069 DESTINATION ${KDE_INSTALL_INCLUDEDIR}/libkdeedu COMPONENT Devel 0070 )