]> git.lyx.org Git - features.git/commitdiff
cmake: add all info files and the cmake macros
authorPeter Kümmel <syntheticpp@gmx.net>
Thu, 6 Jan 2011 18:54:25 +0000 (18:54 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Thu, 6 Jan 2011 18:54:25 +0000 (18:54 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37136 a592a061-630c-0410-9148-cb99ea01b6c8

development/cmake/src/CMakeLists.txt

index abfe59df83cf960b2d3ee3669718af8661c36caa..8841cd4715ded2902c2ebb93d1d5f2df5c93d286 100644 (file)
@@ -95,12 +95,40 @@ 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(LyXInfo 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(LyXCMake FILES ${lyx_cmake_files})
+endif()
+
 add_executable(${_lyx}
        ${WIN32_CONSOLE}
        ${lyx_sources}
        ${lyx_headers}
        ${vld_files}
        ${FILE_RC}
+       ${lyx_info_files}
+       ${lyx_cmake_files}
 )
 
 lyx_add_gcc_pch(${_lyx})