]> git.lyx.org Git - features.git/commitdiff
cmake: file renaming -> be ready for any and everything
authorPeter Kümmel <syntheticpp@gmx.net>
Mon, 23 Apr 2007 16:52:27 +0000 (16:52 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Mon, 23 Apr 2007 16:52:27 +0000 (16:52 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17921 a592a061-630c-0410-9148-cb99ea01b6c8

development/cmake/CMakeLists.txt
development/cmake/src/CMakeLists.txt
development/cmake/src/frontends/CMakeLists.txt
development/cmake/src/frontends/controllers/CMakeLists.txt
development/cmake/src/frontends/qt4/CMakeLists.txt
development/cmake/src/graphics/CMakeLists.txt
development/cmake/src/insets/CMakeLists.txt
development/cmake/src/mathed/CMakeLists.txt
development/cmake/src/support/CMakeLists.txt

index e3b619323f722b2553ddd303966626ac548d8787..132391a821c9f519d630e4b9f037cf144c13887c 100644 (file)
@@ -30,6 +30,10 @@ if(NOT GROUP_CODE)
        set(GROUP_CODE flat)
 endif(NOT GROUP_CODE)
 
+# lyx's source files
+set(LYX_CPP_FILES *.C)
+set(LYX_HPP_FILES *.h)
+
 include(LyXPaths)
 include(LyXMacros)
 include(ProjectSourceGroup)
index 912eaad96268833250b394843c7eba6c079d2cf7..a88331af4864a54a628494cdaa6c26e66e321f8a 100644 (file)
@@ -20,8 +20,8 @@ endif(NOT MERGE_FILES)
 
 configure_file(${TOP_SRC_DIR}/src/version.C.in ${CMAKE_CURRENT_BINARY_DIR}/version.C)
 
-file(GLOB lyx_sources ${TOP_SRC_DIR}/src/*.C)
-file(GLOB lyx_headers ${TOP_SRC_DIR}/src/*.h)
+file(GLOB lyx_sources ${TOP_SRC_DIR}/src/${LYX_CPP_FILES})
+file(GLOB lyx_headers ${TOP_SRC_DIR}/src/${LYX_HPP_FILES})
 
 list(REMOVE_ITEM lyx_sources
        ${TOP_SRC_DIR}/src/aspell.C
index 00715e013e5ea09a9f4738010d99b70d056f98c1..f2d4039ba15c682d2538c17cb9b2d9ecb6af518c 100644 (file)
@@ -12,8 +12,8 @@ add_subdirectory(controllers)
 add_subdirectory(${qt_postfix}) 
 
 
-file(GLOB frontends_sources ${TOP_SRC_DIR}/src/frontends/*.C)
-file(GLOB frontends_headers ${TOP_SRC_DIR}/src/frontends/*.h)
+file(GLOB frontends_sources ${TOP_SRC_DIR}/src/frontends/${LYX_CPP_FILES})
+file(GLOB frontends_headers ${TOP_SRC_DIR}/src/frontends/${LYX_HPP_FILES})
 
 lyx_add_msvc_pch(frontends)
 
index 08a279d1dd68b11fcba3ced923b40113e4ab8d10..3d0183a4ee399f4148c491dcf3fa31581d171c9d 100644 (file)
@@ -6,8 +6,8 @@
 
 project(controllers)
 
-file(GLOB controllers_sources ${TOP_SRC_DIR}/src/frontends/controllers/*.C)
-file(GLOB controllers_headers ${TOP_SRC_DIR}/src/frontends/controllers/*.h)
+file(GLOB controllers_sources ${TOP_SRC_DIR}/src/frontends/controllers/${LYX_CPP_FILES})
+file(GLOB controllers_headers ${TOP_SRC_DIR}/src/frontends/controllers/${LYX_HPP_FILES})
 
 lyx_add_msvc_pch(controllers)
 
index a4419c366945bbd1ce4808c11c87dc1fd19e3e13..b9ac5eaa9ff21eb3d6668993a7bbcb0e59dce69d 100644 (file)
@@ -7,8 +7,8 @@
 project(frontend_qt4)
 
 
-file(GLOB frontends_qt4_sources ${TOP_SRC_DIR}/src/frontends/qt4/*.C)
-file(GLOB frontends_qt4_headers ${TOP_SRC_DIR}/src/frontends/qt4/*.h)
+file(GLOB frontends_qt4_sources ${TOP_SRC_DIR}/src/frontends/qt4/${LYX_CPP_FILES})
+file(GLOB frontends_qt4_headers ${TOP_SRC_DIR}/src/frontends/qt4/${LYX_HPP_FILES})
 file(GLOB frontend_qt4_UI       ${TOP_SRC_DIR}/src/frontends/qt4/ui/*.ui)
 
 lyx_add_msvc_pch(frontends_qt4)
index 223c63c7f0c5435a5296404faa974405681736cb..15270a9768d614ea4a0a9bf3197658908ee3b4a2 100644 (file)
@@ -6,8 +6,8 @@
 
 project(graphics)
 
-file(GLOB graphics_sources ${TOP_SRC_DIR}/src/graphics/*.C)
-file(GLOB graphics_headers ${TOP_SRC_DIR}/src/graphics/*.h)
+file(GLOB graphics_sources ${TOP_SRC_DIR}/src/graphics/${LYX_CPP_FILES})
+file(GLOB graphics_headers ${TOP_SRC_DIR}/src/graphics/${LYX_HPP_FILES})
 
 lyx_add_msvc_pch(graphics)
 
index a442315b4917ba2eecd4886aac8d972631415587..c2fca4605e9d00cd2c393f69a47586a5223272fb 100644 (file)
@@ -6,8 +6,8 @@
 
 project(insets)
 
-file(GLOB insets_sources ${TOP_SRC_DIR}/src/insets/*.C)
-file(GLOB insets_headers ${TOP_SRC_DIR}/src/insets/*.h)
+file(GLOB insets_sources ${TOP_SRC_DIR}/src/insets/${LYX_CPP_FILES})
+file(GLOB insets_headers ${TOP_SRC_DIR}/src/insets/${LYX_HPP_FILES})
 
 list(REMOVE_ITEM insets_sources ${TOP_SRC_DIR}/src/insets/insettheorem.C)
 
index c80c14d064d6a2fac8c787a58f5a25b333be0b39..aefa2a66792d519a5fc39a16a60f2bbe633feca2 100644 (file)
@@ -6,8 +6,8 @@
 
 project(mathed)
 
-file(GLOB mathed_sources ${TOP_SRC_DIR}/src/mathed/*.C)
-file(GLOB mathed_headers ${TOP_SRC_DIR}/src/mathed/*.h)
+file(GLOB mathed_sources ${TOP_SRC_DIR}/src/mathed/${LYX_CPP_FILES})
+file(GLOB mathed_headers ${TOP_SRC_DIR}/src/mathed/${LYX_CPP_FILES})
 
 list(REMOVE_ITEM mathed_sources
        ${TOP_SRC_DIR}/src/mathed/InsetMathXYArrow.C
index 925a5625e6d66ab8d821265ff52b9e3bd2fb6a98..2aed03eb42c72153fe8842b6af9b639c7792a0d9 100644 (file)
@@ -9,8 +9,8 @@ project(support)
 configure_file(${TOP_SRC_DIR}/src/support/package.C.in 
                ${CMAKE_CURRENT_BINARY_DIR}/package.C)
 
-file(GLOB support_sources ${TOP_SRC_DIR}/src/support/*.C)
-file(GLOB support_headers ${TOP_SRC_DIR}/src/support/*.h)
+file(GLOB support_sources ${TOP_SRC_DIR}/src/support/${LYX_CPP_FILES})
+file(GLOB support_headers ${TOP_SRC_DIR}/src/support/${LYX_HPP_FILES})
 
 list(REMOVE_ITEM support_sources       
        ${TOP_SRC_DIR}/src/support/os_win32.C