]> git.lyx.org Git - lyx.git/blobdiff - development/cmake/src/insets/CMakeLists.txt
cmake cosmetics
[lyx.git] / development / cmake / src / insets / CMakeLists.txt
index 75b9ab272def24bef2cb048b9aeab6b841ceab45..c86faf58d0ed4036265c797c931a79cf21aa6931 100644 (file)
+# 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>
+#
+
 project(insets)
 
-set(insets_sources
-       mailinset.C
-       mailinset.h
-       ExternalSupport.C
-       ExternalSupport.h
-       ExternalTemplate.C
-       ExternalTemplate.h
-       ExternalTransforms.C
-       ExternalTransforms.h
-       render_base.h
-       render_button.C
-       render_button.h
-       render_graphic.C
-       render_graphic.h
-       render_preview.C
-       render_preview.h
-       inset.C
-       inset.h
-       insetbase.h
-       insetbase.C
-       insetbibitem.C
-       insetbibitem.h
-       insetbibtex.C
-       insetbibtex.h
-       insetbox.C
-       insetbox.h
-       insetbranch.C
-       insetbranch.h
-       insetcaption.C
-       insetcaption.h
-       insetcharstyle.C
-       insetcharstyle.h
-       insetcite.C
-       insetcite.h
-       insetcollapsable.C
-       insetcollapsable.h
-       insetcommand.C
-       insetcommand.h
-       insetcommandparams.C
-       insetcommandparams.h
-       insetenv.C
-       insetenv.h
-       insetert.C
-       insetert.h
-       insetexternal.C
-       insetexternal.h
-       insetfloat.h
-       insetfloat.C
-       insetfloatlist.C
-       insetfloatlist.h
-       insetfoot.C
-       insetfoot.h
-       insetfootlike.C
-       insetfootlike.h
-       insetgraphicsParams.h
-       insetgraphicsParams.C
-       insetgraphics.C
-       insetgraphics.h
-       insethfill.C
-       insethfill.h
-       insetinclude.C
-       insetinclude.h
-       insetindex.C
-       insetindex.h
-       insetlabel.C
-       insetlabel.h
-       insetlatexaccent.C
-       insetlatexaccent.h
-       insetline.C
-       insetline.h
-       insetmarginal.h
-       insetmarginal.C
-       insetnewline.C
-       insetnewline.h
-       insetnote.C
-       insetnote.h
-       insetoptarg.C
-       insetoptarg.h
-       insetpagebreak.C
-       insetpagebreak.h
-       insetquotes.C
-       insetquotes.h
-       insetref.C
-       insetref.h
-       insetspace.C
-       insetspace.h
-       insetspecialchar.C
-       insetspecialchar.h
-       insettabular.C
-       insettabular.h
-       insettext.C
-       insettext.h
-       insettoc.C
-       insettoc.h
-       inseturl.C
-       inseturl.h
-       insetvspace.C
-       insetvspace.h
-       insetwrap.h
-       insetwrap.C 
-)      
+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.cpp)
 
-lyx_add_path(insets_sources ${TOP_SRC_DIR}/src/insets)
+lyx_add_msvc_pch(insets)
 
 include_directories(${TOP_SRC_DIR}/src/insets)
 
-add_library(insets STATIC ${insets_sources})
+
+if(NOT MERGE_FILES)
+       add_library(insets ${library_type} ${insets_sources} ${insets_headers})
+else()
+       lyx_const_touched_files(_allinone  insets_sources)
+       add_library(insets ${library_type} ${_allinone_files})
+endif()
+
+
+project_source_group("${GROUP_CODE}" insets_sources insets_headers)