File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ function(qm_skip_automoc)
8686 get_filename_component (_item ${_item} ABSOLUTE )
8787
8888 if (IS_DIRECTORY ${_item} )
89- file (GLOB _src ${_item} /*.h ${_item} /*.hpp ${_item} /*.cpp ${_item} /*.cc ${_item} /*.mm )
89+ file (GLOB _src ${_item} /*.h ${_item} /*.hh ${_item} /*. hpp ${_item} /*.hxx ${_item} /*.c ${_item} /*.cc ${_item} /*.cpp ${_item} /*.cxx ${_item} /*.m ${_item} /*.mm )
9090 set_source_files_properties (
9191 ${_src} PROPERTIES SKIP_AUTOMOC ON
9292 )
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ function(qm_add_translation _target)
5353 # Collect source directories
5454 if (FUNC_DIRECTORIES)
5555 foreach (_item ${FUNC_DIRECTORIES} )
56- file (GLOB _tmp ${_item} /*.h ${_item} /*.hpp ${_item} /*.cpp ${_item} /*.cc ${_item} /*.mm )
56+ file (GLOB _tmp ${_item} /*.h ${_item} /*.hh ${_item} /*. hpp ${_item} /*.hxx ${_item} /*.c ${_item} /*.cc ${_item} /*.cpp ${_item} /*.cxx ${_item} /*.m ${_item} /*.mm )
5757 list (APPEND _src_files ${_tmp} )
5858 endforeach ()
5959 endif ()
@@ -69,7 +69,7 @@ function(qm_add_translation _target)
6969
7070 set (_tmp_files)
7171 get_target_property (_tmp_files ${_item} SOURCES )
72- list (FILTER _tmp_files INCLUDE REGEX ".+\\ .(cpp|cc )" )
72+ list (FILTER _tmp_files INCLUDE REGEX ".+\\ .(h|hh|hpp|hxx|c|cc|cpp|cxx|m|mm )" )
7373 list (FILTER _tmp_files EXCLUDE REGEX "(qasc|moc)_.+" )
7474
7575 # Need to convert to absolute path
You can’t perform that action at this time.
0 commit comments