]> git.lyx.org Git - features.git/blobdiff - development/cmake/src/CMakeLists.txt
cmake: make the merged build much more usable by adding all the source files to the IDE
[features.git] / development / cmake / src / CMakeLists.txt
index c75cf8033fdee6f080abd6d16aa87dbf05d8805c..773bfb2bcf3bcc6d74ee0c007cb49ea7265ecbe5 100644 (file)
@@ -1,7 +1,7 @@
 # This file is part of LyX, the document processor.
 # Licence details can be found in the file COPYING.
 #
-# Copyright (c) 2006, Peter Kümmel, <syntheticpp@gmx.net>
+# Copyright (c) 2006-2011 Peter Kümmel, <syntheticpp@gmx.net>
 #
 
 set(_lyx ${PACKAGE_BASE}${PROGRAM_SUFFIX})
@@ -95,31 +95,9 @@ if(WIN32)
        message(STATUS "Using icon defined in resource file: ${FILE_RC}")
 endif()
 
-if(MSVC_IDE)
-       file(GLOB info_files ${TOP_SRC_DIR}/*)
-       set(lyx_info_files)
-       foreach(_it ${info_files})
-               if(NOT IS_DIRECTORY ${_it})
-                       set_source_files_properties(${_it} PROPERTIES HEADER_FILE_ONLY TRUE)
-                       set(lyx_info_files ${lyx_info_files} ${_it})
-               endif()
-       endforeach()
-       source_group(LyXInfoFiles FILES ${lyx_info_files})
-       
-       file(GLOB cmake_files1 ${TOP_SRC_DIR}/development/cmake/*)
-       file(GLOB cmake_files2 ${TOP_SRC_DIR}/development/cmake/modules/*)
-       set(lyx_cmake_files)
-       foreach(_it ${cmake_files1} ${cmake_files2})
-               if(NOT IS_DIRECTORY ${_it})
-                       get_filename_component(name ${_it} NAME)
-                       if(NOT name STREQUAL CMakeLists.txt AND NOT ${_it} MATCHES "^/\\\\..*$;~$")
-                               set_source_files_properties(${_it} PROPERTIES HEADER_FILE_ONLY TRUE)
-                               set(lyx_cmake_files ${lyx_cmake_files} ${_it})
-                       endif()
-               endif()
-       endforeach()
-       source_group(LyXCMakeFiles FILES ${lyx_cmake_files})
-endif()
+lyx_find_info_files(LyXInfoFiles ${TOP_SRC_DIR}/*)
+lyx_find_info_files(LyXCMakeFiles ${TOP_SRC_DIR}/development/cmake/*)
+lyx_find_info_files(LyXCMakeFiles ${TOP_SRC_DIR}/development/cmake/modules/*)
 
 add_executable(${_lyx}
        ${WIN32_CONSOLE}