Warning, /frameworks/kconfig/autotests/kconfig_compiler/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 
0002 # On Windows we have to generate the .h and .cpp inside ${CMAKE_BINARY_DIR}/bin because
0003 # otherwise QFINDTESTDATA will not be able to locate them.
0004 if(WIN32)
0005     set(KCFG_OUTPUT_DIR "${CMAKE_BINARY_DIR}/bin")
0006 else()
0007     set(KCFG_OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR}")
0008 endif()
0009 
0010 # make sure the generated headers can be found
0011 include_directories(${KCFG_OUTPUT_DIR})
0012 
0013 include(${CMAKE_SOURCE_DIR}/KF5ConfigMacros.cmake)
0014 macro(GEN_KCFG_TEST_SOURCE _testName _srcs)
0015    KCONFIG_ADD_KCFG_FILES(${_srcs} ${_testName}.kcfgc ${ARGN})
0016 endmacro()
0017 
0018 include(ECMMarkAsTest)
0019 
0020 ########### next target ###############
0021 
0022 set(test1_SRCS test1main.cpp )
0023 
0024 
0025 gen_kcfg_test_source(test1 test1_SRCS)
0026 
0027 ecm_add_test(TEST_NAME test1 ${test1_SRCS})
0028 target_link_libraries(test1 KF5::ConfigGui)
0029 
0030 
0031 ########### next target ###############
0032 
0033 set(test2_SRCS test2main.cpp )
0034 
0035 
0036 gen_kcfg_test_source(test2 test2_SRCS)
0037 
0038 ecm_add_test(TEST_NAME test2 ${test2_SRCS})
0039 target_link_libraries(test2 KF5::ConfigGui)
0040 
0041 
0042 ########### next target ###############
0043 
0044 set(test3_SRCS test3main.cpp )
0045 
0046 
0047 gen_kcfg_test_source(test3 test3_SRCS)
0048 
0049 ecm_add_test(TEST_NAME test3 ${test3_SRCS})
0050 target_link_libraries(test3 KF5::ConfigGui)
0051 
0052 
0053 ########### next target ###############
0054 
0055 set(test3a_SRCS test3amain.cpp )
0056 
0057 
0058 gen_kcfg_test_source(test3a test3a_SRCS)
0059 
0060 ecm_add_test(TEST_NAME test3a ${test3a_SRCS})
0061 target_link_libraries(test3a KF5::ConfigGui)
0062 
0063 
0064 ########### next target ###############
0065 
0066 set(test4_SRCS test4main.cpp )
0067 
0068 
0069 gen_kcfg_test_source(test4 test4_SRCS)
0070 
0071 ecm_add_test(TEST_NAME test4 ${test4_SRCS})
0072 target_link_libraries(test4 KF5::ConfigGui)
0073 
0074 
0075 ########### next target ###############
0076 
0077 set(test5_SRCS test5main.cpp )
0078 
0079 
0080 gen_kcfg_test_source(test5 test5_SRCS)
0081 
0082 ecm_add_test(TEST_NAME test5 ${test5_SRCS})
0083 target_link_libraries(test5 KF5::ConfigGui)
0084 
0085 
0086 ########### next target ###############
0087 
0088 set(test6_SRCS test6main.cpp )
0089 
0090 
0091 gen_kcfg_test_source(test6 test6_SRCS)
0092 
0093 ecm_add_test(TEST_NAME test6 ${test6_SRCS})
0094 target_link_libraries(test6 KF5::ConfigGui)
0095 
0096 
0097 ########### next target ###############
0098 
0099 set(test7_SRCS test7main.cpp )
0100 
0101 
0102 gen_kcfg_test_source(test7 test7_SRCS)
0103 
0104 ecm_add_test(TEST_NAME test7 ${test7_SRCS})
0105 target_link_libraries(test7 KF5::ConfigGui)
0106 
0107 
0108 ########### next target ###############
0109 
0110 set(test8_SRCS test8main.cpp )
0111 
0112 
0113 gen_kcfg_test_source(test8a test8_SRCS)
0114 gen_kcfg_test_source(test8b test8_SRCS)
0115 gen_kcfg_test_source(test8c test8_SRCS)
0116 
0117 ecm_add_test(TEST_NAME test8 ${test8_SRCS})
0118 target_link_libraries(test8 KF5::ConfigGui)
0119 
0120 
0121 ########### next target ###############
0122 
0123 set(test9_SRCS test9main.cpp )
0124 
0125 
0126 gen_kcfg_test_source(test9 test9_SRCS)
0127 
0128 ecm_add_test(TEST_NAME test9 ${test9_SRCS})
0129 target_link_libraries(test9 KF5::ConfigGui)
0130 
0131 
0132 ########### next target ###############
0133 
0134 set(test10_SRCS test10main.cpp )
0135 
0136 
0137 gen_kcfg_test_source(test10 test10_SRCS)
0138 
0139 ecm_add_test(TEST_NAME test10 ${test10_SRCS})
0140 target_link_libraries(test10 KF5::ConfigGui)
0141 
0142 
0143 ########### next target ###############
0144 
0145 set(test11_SRCS test11main.cpp )
0146 
0147 
0148 gen_kcfg_test_source(test11 test11_SRCS)
0149 gen_kcfg_test_source(test11a test11_SRCS)
0150 
0151 ecm_add_test(TEST_NAME test11 ${test11_SRCS})
0152 target_link_libraries(test11 KF5::ConfigGui)
0153 
0154 
0155 ########### next target ###############
0156 
0157 set(test12_SRCS test12main.cpp )
0158 
0159 gen_kcfg_test_source(test12 test12_SRCS)
0160 
0161 ecm_add_test(TEST_NAME test12 ${test12_SRCS})
0162 target_link_libraries(test12 KF5::ConfigGui)
0163 
0164 ########### next target ###############
0165 
0166 set(test13_SRCS test13main.cpp )
0167 
0168 gen_kcfg_test_source(test13 test13_SRCS GENERATE_MOC)
0169 
0170 ecm_add_test(TEST_NAME test13 ${test13_SRCS})
0171 target_link_libraries(test13 KF5::ConfigGui)
0172 
0173 ########### next target ###############
0174 
0175 set(test_state_config_SRCS test_state_config_main.cpp)
0176 
0177 gen_kcfg_test_source(test_state_config test_state_config_SRCS GENERATE_MOC)
0178 
0179 ecm_add_test(TEST_NAME test_state_config ${test_state_config_SRCS})
0180 target_link_libraries(test_state_config KF5::ConfigGui Qt${QT_MAJOR_VERSION}::Test)
0181 
0182 ########### next target ###############
0183 
0184 set(test_emptyentries_SRCS test_emptyentries_main.cpp )
0185 
0186 gen_kcfg_test_source(test_emptyentries test_emptyentries_SRCS GENERATE_MOC)
0187 
0188 ecm_add_test(TEST_NAME test_emptyentries ${test_emptyentries_SRCS})
0189 target_link_libraries(test_emptyentries KF5::ConfigGui)
0190 
0191 ########### next target ###############
0192 
0193 set(test_subgroups_SRCS test_subgroups_main.cpp )
0194 
0195 gen_kcfg_test_source(test_subgroups test_subgroups_SRCS GENERATE_MOC)
0196 
0197 ecm_add_test(TEST_NAME test_subgroups ${test_subgroups_SRCS})
0198 target_link_libraries(test_subgroups KF5::ConfigGui)
0199 
0200 
0201 ########### next target ###############
0202 
0203 set(test_dpointer_SRCS test_dpointer_main.cpp )
0204 
0205 gen_kcfg_test_source(test_dpointer test_dpointer_SRCS)
0206 
0207 ecm_add_test(TEST_NAME test_dpointer ${test_dpointer_SRCS})
0208 target_link_libraries(test_dpointer KF5::ConfigGui)
0209 
0210 
0211 ########### next target ###############
0212 
0213 set(test_signal_SRCS test_signal_main.cpp )
0214 gen_kcfg_test_source(test_signal test_signal_SRCS GENERATE_MOC)
0215 ecm_add_test(TEST_NAME test_signal ${test_signal_SRCS})
0216 target_link_libraries(test_signal KF5::ConfigGui)
0217 
0218 
0219 ########### next target ###############
0220 
0221 set(test_notifiers_SRCS test_notifiers_main.cpp )
0222 gen_kcfg_test_source(test_notifiers test_notifiers_SRCS)
0223 ecm_add_test(TEST_NAME test_notifiers ${test_notifiers_SRCS})
0224 target_link_libraries(test_notifiers KF5::ConfigGui)
0225 
0226 
0227 ########### next target ###############
0228 
0229 set(kconfigcompiler_test_signals_SRCS kconfigcompiler_test_signals.cpp)
0230 gen_kcfg_test_source(signals_test_singleton kconfigcompiler_test_signals_SRCS GENERATE_MOC)
0231 gen_kcfg_test_source(signals_test_no_singleton kconfigcompiler_test_signals_SRCS GENERATE_MOC)
0232 gen_kcfg_test_source(signals_test_singleton_dpointer kconfigcompiler_test_signals_SRCS GENERATE_MOC)
0233 gen_kcfg_test_source(signals_test_no_singleton_dpointer kconfigcompiler_test_signals_SRCS GENERATE_MOC)
0234 gen_kcfg_test_source(signals_test_singleton_itemaccessors kconfigcompiler_test_signals_SRCS GENERATE_MOC)
0235 
0236 ecm_add_test(${kconfigcompiler_test_signals_SRCS}
0237     TEST_NAME kconfigcompiler-signals-test
0238     LINK_LIBRARIES Qt${QT_MAJOR_VERSION}::Test KF5::ConfigGui
0239 )
0240 
0241 ########### next target ###############
0242 
0243 set(test_properties_minmax_SRCS test_properties_minmax_main.cpp)
0244 gen_kcfg_test_source(test_properties_minmax test_properties_minmax_SRCS GENERATE_MOC)
0245 
0246 ecm_add_test(${test_properties_minmax_SRCS}
0247     TEST_NAME test_properties_minmax
0248     LINK_LIBRARIES KF5::ConfigGui
0249 )
0250 
0251 ########### next target ###############
0252 
0253 set(test_param_minmax_SRCS test_param_minmax_main.cpp)
0254 gen_kcfg_test_source(test_param_minmax test_param_minmax_SRCS)
0255 
0256 ecm_add_test(${test_param_minmax_SRCS}
0257     TEST_NAME test_param_minmax
0258     LINK_LIBRARIES KF5::ConfigGui
0259 )
0260 
0261 ########### next target ###############
0262 
0263 ecm_add_test(kconfigcompiler_test.cpp
0264     TEST_NAME kconfigcompiler-basic-test
0265     LINK_LIBRARIES Qt${QT_MAJOR_VERSION}::Test
0266 )
0267 
0268 
0269 ########### next target ###############
0270 
0271 set(test_qcategory_SRCS test_qdebugcategorymain.cpp test_qdebugcategory_debug.cpp)
0272 gen_kcfg_test_source(test_qdebugcategory test_qcategory_SRCS)
0273 ecm_add_test(TEST_NAME test_qdebugcategory ${test_qcategory_SRCS})
0274 target_link_libraries(test_qdebugcategory KF5::ConfigGui)
0275 
0276 ########### next target ###############
0277 
0278 set(test_translation_qt_SRCS test_translation_qt_main.cpp)
0279 gen_kcfg_test_source(test_translation_qt test_translation_qt_SRCS)
0280 
0281 ecm_add_test(TEST_NAME test_translation_qt ${test_translation_qt_SRCS})
0282 target_link_libraries(test_translation_qt KF5::ConfigGui)
0283 
0284 ########### next target ###############
0285 
0286 set(test_translation_kde_SRCS test_translation_kde_main.cpp)
0287 gen_kcfg_test_source(test_translation_kde test_translation_kde_SRCS)
0288 
0289 ecm_add_test(TEST_NAME test_translation_kde ${test_translation_kde_SRCS})
0290 target_link_libraries(test_translation_kde KF5::ConfigGui)
0291 
0292 ########### next target ###############
0293 
0294 set(test_translation_kde_domain_SRCS test_translation_kde_domain_main.cpp)
0295 gen_kcfg_test_source(test_translation_kde_domain test_translation_kde_domain_SRCS)
0296 
0297 ecm_add_test(TEST_NAME test_translation_kde_domain ${test_translation_kde_domain_SRCS})
0298 target_link_libraries(test_translation_kde_domain KF5::ConfigGui)
0299 
0300 ########### next target ###############
0301 
0302 set(test_fileextensions_SRCS test_fileextensions_main.cxx)
0303 gen_kcfg_test_source(test_fileextensions test_fileextensions_SRCS)
0304 
0305 ecm_add_test(TEST_NAME test_fileextensions ${test_fileextensions_SRCS})
0306 target_link_libraries(test_fileextensions KF5::ConfigGui)
0307 
0308 
0309 ####### next target ##########
0310 ## If this to compiles, we are sure that the generation is correct.
0311 set(test_enums_and_properties_SRCS enum_group_main.cpp)
0312 gen_kcfg_test_source(test_enums_and_properties test_enums_and_properties_SRCS GENERATE_MOC)
0313 ecm_add_test(TEST_NAME test_enums_and_properties ${test_enums_and_properties_SRCS})
0314 target_link_libraries(test_enums_and_properties KF5::ConfigGui)