12 files changed:
# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/modules")
# 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)
include(LyXPaths)
include(LyXMacros)
if(ICONV_FOUND)
target_link_libraries(intl ${ICONV_LIBRARY})
endif(ICONV_FOUND)
if(ICONV_FOUND)
target_link_libraries(intl ${ICONV_LIBRARY})
endif(ICONV_FOUND)
+
+source_group("${CODE_GROUP_NAME}" FILES ${intl_sources} ${intl_headers})
+
${TOP_SRC_DIR}/src/Variables.C
${TOP_SRC_DIR}/src/Sectioning.C)
${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)
if(ASPELL_FOUND)
include_directories(${ASPELL_INCLUDE_DIR})
set(lyx_sources ${lyx_sources} ${TOP_SRC_DIR}/src/aspell.C)
if(ASPELL_FOUND)
target_link_libraries(lyx-${qt_postfix} ${ASPELL_LIBRARY})
endif(ASPELL_FOUND)
if(ASPELL_FOUND)
target_link_libraries(lyx-${qt_postfix} ${ASPELL_LIBRARY})
endif(ASPELL_FOUND)
+
+source_group("${CODE_GROUP_NAME}" FILES ${lyx_sources} ${lyx_headers})
+
+
add_library(frontends STATIC ${frontends_sources} ${frontends_headers})
add_library(frontends STATIC ${frontends_sources} ${frontends_headers})
+source_group("${CODE_GROUP_NAME}" FILES ${frontends_sources} ${frontends_headers})
target_link_libraries(controllers boost_regex boost_filesystem)
target_link_libraries(controllers boost_regex boost_filesystem)
+source_group("${CODE_GROUP_NAME}" FILES ${controllers_sources} ${controllers_headers})
target_link_libraries(frontend_qt3 Gdi32)
endif(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})
+
lyx_add_ui_files(frontends_qt4_sources ${frontend_qt4_UI})
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
add_definitions(
-DQT_CLEAN_NAMESPACE
-DQT_GENUINE_STR
target_link_libraries(frontend_qt4 Gdi32)
endif(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})
+
add_library(graphics STATIC ${graphics_sources} ${graphics_headers})
add_library(graphics STATIC ${graphics_sources} ${graphics_headers})
+source_group("${CODE_GROUP_NAME}" FILES ${graphics_sources} ${graphics_headers})
+
add_library(insets STATIC ${insets_sources} ${insets_headers})
add_library(insets STATIC ${insets_sources} ${insets_headers})
+source_group("${CODE_GROUP_NAME}" FILES ${insets_sources} ${insets_headers})
+
add_library(mathed STATIC ${mathed_sources} ${mathed_headers})
add_library(mathed STATIC ${mathed_sources} ${mathed_headers})
+source_group("${CODE_GROUP_NAME}" FILES ${mathed_sources} ${mathed_headers})
${TOP_SRC_DIR}/src/support/strerror.c)
${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})
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)
target_link_libraries(support boost_signals)
target_link_libraries(support shlwapi)
endif(WIN32)
target_link_libraries(support shlwapi)
endif(WIN32)
+source_group("${CODE_GROUP_NAME}" FILES ${support_sources} ${support_headers})
target_link_libraries(tex2lyx support )
target_link_libraries(tex2lyx support )
+source_group("${CODE_GROUP_NAME}" FILES ${tex2lyx_SRCS})