From 92d84f2a04962fc9fb953d742737f23ce9897f14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20K=C3=BCmmel?= Date: Sun, 3 Sep 2006 17:51:53 +0000 Subject: [PATCH] Headers and .C files are now in The Golden Code folder git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14883 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/cmake/CMakeLists.txt | 3 +++ development/cmake/intl/CMakeLists.txt | 3 +++ development/cmake/src/CMakeLists.txt | 6 ++++++ development/cmake/src/frontends/CMakeLists.txt | 2 +- .../cmake/src/frontends/controllers/CMakeLists.txt | 5 +---- development/cmake/src/frontends/qt3/CMakeLists.txt | 3 +++ development/cmake/src/frontends/qt4/CMakeLists.txt | 5 +++-- development/cmake/src/graphics/CMakeLists.txt | 2 ++ development/cmake/src/insets/CMakeLists.txt | 2 ++ development/cmake/src/mathed/CMakeLists.txt | 1 + development/cmake/src/support/CMakeLists.txt | 10 +++++----- development/cmake/src/tex2lyx/CMakeLists.txt | 1 + 12 files changed, 31 insertions(+), 12 deletions(-) diff --git a/development/cmake/CMakeLists.txt b/development/cmake/CMakeLists.txt index 294973a562..f85e3a24e6 100644 --- a/development/cmake/CMakeLists.txt +++ b/development/cmake/CMakeLists.txt @@ -1,6 +1,9 @@ # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/modules") + +set(CODE_GROUP_NAME "The Golden Code") + include(LyXPaths) include(LyXMacros) diff --git a/development/cmake/intl/CMakeLists.txt b/development/cmake/intl/CMakeLists.txt index 4ef0f0e13d..8dd321eb58 100644 --- a/development/cmake/intl/CMakeLists.txt +++ b/development/cmake/intl/CMakeLists.txt @@ -77,3 +77,6 @@ add_library(intl STATIC ${intl_sources} ${intl_headers}) if(ICONV_FOUND) target_link_libraries(intl ${ICONV_LIBRARY}) endif(ICONV_FOUND) + +source_group("${CODE_GROUP_NAME}" FILES ${intl_sources} ${intl_headers}) + diff --git a/development/cmake/src/CMakeLists.txt b/development/cmake/src/CMakeLists.txt index 12f2d6d5c7..da017e44dc 100644 --- a/development/cmake/src/CMakeLists.txt +++ b/development/cmake/src/CMakeLists.txt @@ -22,6 +22,8 @@ list(REMOVE_ITEM lyx_sources ${TOP_SRC_DIR}/src/Variables.C ${TOP_SRC_DIR}/src/Sectioning.C) +set( lyx_sources ${lyx_sources} ${CMAKE_CURRENT_BINARY_DIR}/version.C ) + if(ASPELL_FOUND) include_directories(${ASPELL_INCLUDE_DIR}) set(lyx_sources ${lyx_sources} ${TOP_SRC_DIR}/src/aspell.C) @@ -52,3 +54,7 @@ target_link_libraries(lyx-${qt_postfix} if(ASPELL_FOUND) target_link_libraries(lyx-${qt_postfix} ${ASPELL_LIBRARY}) endif(ASPELL_FOUND) + +source_group("${CODE_GROUP_NAME}" FILES ${lyx_sources} ${lyx_headers}) + + diff --git a/development/cmake/src/frontends/CMakeLists.txt b/development/cmake/src/frontends/CMakeLists.txt index e013979391..b5e28f57b0 100644 --- a/development/cmake/src/frontends/CMakeLists.txt +++ b/development/cmake/src/frontends/CMakeLists.txt @@ -12,5 +12,5 @@ file(GLOB frontends_headers ${TOP_SRC_DIR}/src/frontends/*.h) add_library(frontends STATIC ${frontends_sources} ${frontends_headers}) - +source_group("${CODE_GROUP_NAME}" FILES ${frontends_sources} ${frontends_headers}) diff --git a/development/cmake/src/frontends/controllers/CMakeLists.txt b/development/cmake/src/frontends/controllers/CMakeLists.txt index a092a5e8c5..fb3481f550 100644 --- a/development/cmake/src/frontends/controllers/CMakeLists.txt +++ b/development/cmake/src/frontends/controllers/CMakeLists.txt @@ -9,8 +9,5 @@ add_library(controllers STATIC ${controllers_sources} ${controllers_headers}) target_link_libraries(controllers boost_regex boost_filesystem) - - - - +source_group("${CODE_GROUP_NAME}" FILES ${controllers_sources} ${controllers_headers}) diff --git a/development/cmake/src/frontends/qt3/CMakeLists.txt b/development/cmake/src/frontends/qt3/CMakeLists.txt index 82ec1a2724..177e50e9c6 100644 --- a/development/cmake/src/frontends/qt3/CMakeLists.txt +++ b/development/cmake/src/frontends/qt3/CMakeLists.txt @@ -35,3 +35,6 @@ if(WIN32) target_link_libraries(frontend_qt3 Gdi32) endif(WIN32) +source_group("${CODE_GROUP_NAME}" FILES ${frontends_qt3_sources} ${frontends_qt3_headers}) +source_group("Uic files" FILES ${frontend_qt3_UI}) + diff --git a/development/cmake/src/frontends/qt4/CMakeLists.txt b/development/cmake/src/frontends/qt4/CMakeLists.txt index 0db9b94d96..643a498808 100644 --- a/development/cmake/src/frontends/qt4/CMakeLists.txt +++ b/development/cmake/src/frontends/qt4/CMakeLists.txt @@ -10,8 +10,6 @@ lyx_automoc(${frontends_qt4_sources}) lyx_add_ui_files(frontends_qt4_sources ${frontend_qt4_UI}) -source_group("Uic files" FILES ${frontend_qt4_UI}) - add_definitions( -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR @@ -31,3 +29,6 @@ if(WIN32) target_link_libraries(frontend_qt4 Gdi32) endif(WIN32) +source_group("${CODE_GROUP_NAME}" FILES ${frontends_qt4_sources} ${frontends_qt4_headers}) +source_group("Uic files" FILES ${frontend_qt4_UI}) + diff --git a/development/cmake/src/graphics/CMakeLists.txt b/development/cmake/src/graphics/CMakeLists.txt index 044d7cb6cf..18ce3aca0f 100644 --- a/development/cmake/src/graphics/CMakeLists.txt +++ b/development/cmake/src/graphics/CMakeLists.txt @@ -7,3 +7,5 @@ include_directories(${TOP_SRC_DIR}/src/graphics) add_library(graphics STATIC ${graphics_sources} ${graphics_headers}) +source_group("${CODE_GROUP_NAME}" FILES ${graphics_sources} ${graphics_headers}) + diff --git a/development/cmake/src/insets/CMakeLists.txt b/development/cmake/src/insets/CMakeLists.txt index 072488f1ad..34bb500cff 100644 --- a/development/cmake/src/insets/CMakeLists.txt +++ b/development/cmake/src/insets/CMakeLists.txt @@ -9,3 +9,5 @@ include_directories(${TOP_SRC_DIR}/src/insets) add_library(insets STATIC ${insets_sources} ${insets_headers}) +source_group("${CODE_GROUP_NAME}" FILES ${insets_sources} ${insets_headers}) + diff --git a/development/cmake/src/mathed/CMakeLists.txt b/development/cmake/src/mathed/CMakeLists.txt index 9ca62103fd..92adc4188f 100644 --- a/development/cmake/src/mathed/CMakeLists.txt +++ b/development/cmake/src/mathed/CMakeLists.txt @@ -12,4 +12,5 @@ include_directories(${TOP_SRC_DIR}/src/mathed) add_library(mathed STATIC ${mathed_sources} ${mathed_headers}) +source_group("${CODE_GROUP_NAME}" FILES ${mathed_sources} ${mathed_headers}) diff --git a/development/cmake/src/support/CMakeLists.txt b/development/cmake/src/support/CMakeLists.txt index 4cb7e5dc24..b083f3a46f 100644 --- a/development/cmake/src/support/CMakeLists.txt +++ b/development/cmake/src/support/CMakeLists.txt @@ -14,12 +14,12 @@ list(REMOVE_ITEM support_sources ${TOP_SRC_DIR}/src/support/strerror.c) +set(support_sources ${support_sources} ${CMAKE_CURRENT_BINARY_DIR}/package.C) + include_directories(${TOP_SRC_DIR}/src/support ${ICONV_INCLUDE_DIR}) -add_library(support STATIC - ${support_sources} - ${support_headers} - ${CMAKE_CURRENT_BINARY_DIR}/package.C) + +add_library(support STATIC ${support_sources} ${support_headers}) target_link_libraries(support boost_signals) @@ -27,5 +27,5 @@ if(WIN32) target_link_libraries(support shlwapi) endif(WIN32) - +source_group("${CODE_GROUP_NAME}" FILES ${support_sources} ${support_headers}) diff --git a/development/cmake/src/tex2lyx/CMakeLists.txt b/development/cmake/src/tex2lyx/CMakeLists.txt index 897ea3711d..8af96a6fb3 100644 --- a/development/cmake/src/tex2lyx/CMakeLists.txt +++ b/development/cmake/src/tex2lyx/CMakeLists.txt @@ -38,4 +38,5 @@ add_executable(tex2lyx ${tex2lyx_SRCS}) target_link_libraries(tex2lyx support ) +source_group("${CODE_GROUP_NAME}" FILES ${tex2lyx_SRCS})