Warning, /utilities/kirogi/src/lib/settings/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 set(settings_SRCS
0002     autosettingshandler.cpp
0003 )
0004 
0005 ecm_qt_declare_logging_category(settings_SRCS
0006     HEADER debug.h
0007     IDENTIFIER SETTINGS
0008     CATEGORY_NAME "kirogi.settings"
0009 )
0010 
0011 kconfig_add_kcfg_files(settings_SRCS GENERATE_MOC settings.kcfgc)
0012 
0013 add_library(
0014     settings
0015 STATIC
0016     ${settings_SRCS}
0017 )
0018 
0019 if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
0020     target_compile_options(settings PRIVATE
0021         -pedantic
0022         -Woverloaded-virtual
0023         -Wunused
0024         -Wall
0025         -Wextra
0026         -Wshadow
0027         -Wnon-virtual-dtor
0028         -Wold-style-cast
0029     )
0030 
0031     if(CMAKE_COMPILER_IS_GNUCXX)
0032         target_compile_options(settings PRIVATE
0033             -Wduplicated-cond
0034             -Wduplicated-branches
0035             -Wlogical-op
0036             -Wnull-dereference
0037             -fsanitize=leak
0038         )
0039     endif()
0040 endif()
0041 
0042 target_link_libraries(settings
0043     PRIVATE
0044         Qt5::Core
0045         KF5::ConfigWidgets
0046 )
0047 
0048 install(FILES kirogi.kcfg DESTINATION ${KCFG_INSTALL_DIR})