Warning, /sdk/kommit/src/libkommitwidgets/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 include_directories(${CMAKE_CURRENT_BINARY_DIR})
0002 
0003 add_library(libkommitwidgets SHARED
0004     dialogs/credentialdialog.h dialogs/credentialdialog.cpp dialogs/credentialdialog.ui)
0005 generate_export_header(libkommitwidgets BASE_NAME libkommitwidgets)
0006 
0007 macro(kommitwidgets_add_dir dir)
0008     file(GLOB ${dir}_FILES ${CMAKE_CURRENT_SOURCE_DIR}/${dir}/*.cpp ${CMAKE_CURRENT_SOURCE_DIR}/${dir}/*.h)
0009     file(GLOB ${dir}_UI_FILES ${CMAKE_CURRENT_SOURCE_DIR}/${dir}/*.ui)
0010 endmacro()
0011 
0012 kommitwidgets_add_dir(core)
0013 kommitwidgets_add_dir(widgets)
0014 kommitwidgets_add_dir(windows)
0015 kommitwidgets_add_dir(models)
0016 kommitwidgets_add_dir(dialogs)
0017 kommitwidgets_add_dir(actions)
0018 
0019 target_sources(libkommitwidgets PRIVATE
0020     kommitwidgetsglobaloptions.h kommitwidgetsglobaloptions.cpp
0021 
0022     ${core_FILES}
0023     ${widgets_FILES}
0024     ${windows_FILES}
0025     ${dialogs_FILES}
0026     ${models_FILES}
0027     ${actions_FILES}
0028 )
0029 
0030 target_link_libraries(libkommitwidgets
0031     Qt::Core
0032     Qt::Widgets
0033     Qt::Concurrent
0034     Qt::Network
0035 
0036     libkommit
0037     libkommitdiff
0038 
0039     KF${KF_MAJOR_VERSION}::I18n
0040     KF${KF_MAJOR_VERSION}::SyntaxHighlighting
0041     KF${KF_MAJOR_VERSION}::XmlGui
0042     KF${KF_MAJOR_VERSION}::KIOWidgets
0043     KF${KF_MAJOR_VERSION}::Parts
0044 
0045 )
0046 
0047 install(TARGETS libkommitwidgets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
0048 
0049 ecm_qt_declare_logging_category(libkommitwidgets
0050     HEADER libkommitwidgets_appdebug.h
0051     IDENTIFIER KOMMIT_WIDGETS_LOG
0052     CATEGORY_NAME "org.kde.kommit.widgets" DESCRIPTION "kommit" EXPORT KOMMIT
0053 )
0054 
0055 add_compile_definitions(LIBKOMMIT_WIDGET_USE_KF)
0056 
0057 ki18n_wrap_ui(
0058     libkommitwidgets
0059 
0060     ${widgets_UI_FILES}
0061     ${windows_UI_FILES}
0062     ${dialogs_UI_FILES}
0063     ${models_UI_FILES}
0064 )
0065 
0066 if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
0067     set_target_properties(libkommitwidgets PROPERTIES UNITY_BUILD ON)
0068 endif()
0069 
0070 set_target_properties(libkommitwidgets
0071     PROPERTIES OUTPUT_NAME kommitwidgets VERSION ${LIBKOMMIT_LIB_VERSION} SOVERSION ${LIBKOMMIT_LIB_SOVERSION}
0072 )
0073 
0074 set_target_properties(
0075     libkommitwidgets PROPERTIES
0076     MACOSX_BUNDLE_GUI_IDENTIFIER org.kde.kommit
0077     MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
0078     MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
0079     MACOSX_BUNDLE TRUE
0080     WIN32_EXECUTABLE TRUE
0081 )
0082 
0083 # if (BUILD_TESTING)
0084 #     add_subdirectory(autotests)
0085 # endif()