]> git.lyx.org Git - features.git/commitdiff
Remove moc-files from the set of source files
authorKornel Benko <kornel@lyx.org>
Tue, 26 Jan 2010 12:40:51 +0000 (12:40 +0000)
committerKornel Benko <kornel@lyx.org>
Tue, 26 Jan 2010 12:40:51 +0000 (12:40 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33228 a592a061-630c-0410-9148-cb99ea01b6c8

development/cmake/CMakeLists.txt
development/cmake/src/CMakeLists.txt
development/cmake/src/frontends/qt4/CMakeLists.txt
development/cmake/src/support/CMakeLists.txt

index d02f3158c1178079868da61daa5c8f7e6613f618..65009f0d96d85b1e20746d35a37690347defba0d 100644 (file)
@@ -108,6 +108,7 @@ endif()
 # lyx's source files
 set(LYX_CPP_FILES *.cpp)
 set(LYX_HPP_FILES *.h)
+set(LYX_MOC_FILES moc_*.cpp)
 
 include(LyXMacros)
 include(ProjectSourceGroup)
index 6f73565bcf225b187da4ab694c879ffebf89212d..ddcb5cde20ab7ca7db04c9322f4a7893de3546d2 100644 (file)
@@ -20,6 +20,8 @@ if (UNIX)
 endif()
 
 file(GLOB lyx_sources ${TOP_SRC_DIR}/src/${LYX_CPP_FILES})
+file(GLOB moc_files ${TOP_SRC_DIR}/src/${LYX_MOC_FILES})
+list(REMOVE_ITEM  lyx_sources ${moc_files} .)
 file(GLOB lyx_headers ${TOP_SRC_DIR}/src/${LYX_HPP_FILES})
 
 list(REMOVE_ITEM lyx_sources
index 553080d99b082a744e49d6cda15786c0b6dcbb9e..c332b3972bfdb88094b8e08ad54149be3ecd46b8 100644 (file)
@@ -8,6 +8,9 @@ project(frontend_qt4)
 
 file(GLOB frontends_qt4_sources
        ${TOP_SRC_DIR}/src/frontends/qt4/${LYX_CPP_FILES})
+file(GLOB moc_files ${TOP_SRC_DIR}/src/frontends/qt4/${LYX_MOC_FILES})
+list(REMOVE_ITEM frontends_qt4_sources ${moc_files} .)
+
 file(GLOB frontends_qt4_headers
        ${TOP_SRC_DIR}/src/frontends/qt4/${LYX_HPP_FILES})
 file(GLOB frontend_qt4_UI
index cb46426ee719ce8f4c4e87f7e1c9e759a9663031..9b40da0c65a9b32694d7afededd606a3300c0bd6 100644 (file)
@@ -7,6 +7,9 @@
 project(support)
 
 file(GLOB support_sources ${TOP_SRC_DIR}/src/support/${LYX_CPP_FILES})
+file(GLOB moc_files ${TOP_SRC_DIR}/src/support/${LYX_MOC_FILES})
+list(REMOVE_ITEM support_sources ${moc_files} .)
+
 file(GLOB support_headers ${TOP_SRC_DIR}/src/support/${LYX_HPP_FILES})
 
 file(GLOB support_mythes_sources ${TOP_SRC_DIR}/src/support/mythes/*.cxx)