]> git.lyx.org Git - lyx.git/blobdiff - development/cmake/src/mathed/CMakeLists.txt
use glob instead of lists
[lyx.git] / development / cmake / src / mathed / CMakeLists.txt
index fb06c6dfd841f4457f54a05fda2aed6b67a028f1..9ca62103fd48564d2cd2d41c10af0d131833e0c3 100644 (file)
 project(mathed)
 
-set(mathed_sources
-       textpainter.C
-       textpainter.h
-       math_amsarrayinset.C
-       math_amsarrayinset.h
-       math_arrayinset.C
-       math_arrayinset.h
-       math_atom.C
-       math_atom.h
-       math_autocorrect.C
-       math_autocorrect.h
-       math_biginset.C
-       math_biginset.h
-       math_binominset.C
-       math_binominset.h
-       math_boldsymbolinset.C
-       math_boldsymbolinset.h
-       math_boxinset.C
-       math_boxinset.h
-       math_boxedinset.C
-       math_boxedinset.h
-       math_braceinset.C
-       math_braceinset.h
-       math_casesinset.C
-       math_casesinset.h
-       math_charinset.C
-       math_charinset.h
-       math_colorinset.C
-       math_colorinset.h
-       math_commentinset.C
-       math_commentinset.h
-       math_data.C
-       math_data.h
-       math_decorationinset.C
-       math_decorationinset.h
-       math_deliminset.C
-       math_deliminset.h
-       math_dfracinset.C
-       math_dfracinset.h
-       math_diffinset.C
-       math_diffinset.h
-       math_diminset.C
-       math_diminset.h
-       math_dotsinset.C
-       math_dotsinset.h
-       math_envinset.C
-       math_envinset.h
-       math_extern.C
-       math_extern.h
-       math_exfuncinset.C
-       math_exfuncinset.h
-       math_exintinset.C
-       math_exintinset.h
-       math_factory.C
-       math_factory.h
-       math_fboxinset.C
-       math_fboxinset.h
-       math_frameboxinset.C
-       math_frameboxinset.h
-       math_fontinset.C
-       math_fontinset.h
-       math_fontoldinset.C
-       math_fontoldinset.h
-       math_fracinset.C
-       math_fracinset.h
-       math_fracbase.C
-       math_fracbase.h
-       math_gridinfo.h
-       math_gridinset.C
-       math_gridinset.h
-       math_hullinset.C
-       math_hullinset.h
-       math_inset.C
-       math_inset.h
-       math_kerninset.C
-       math_kerninset.h
-       math_lefteqninset.C
-       math_lefteqninset.h
-       math_liminset.C
-       math_liminset.h
-       math_macro.C
-       math_macro.h
-       math_macroarg.C
-       math_macroarg.h
-       math_macrotemplate.C
-       math_macrotemplate.h
-       math_macrotable.C
-       math_macrotable.h
-       math_makeboxinset.C
-       math_makeboxinset.h
-       math_mathmlstream.C
-       math_mathmlstream.h
-       math_matrixinset.C
-       math_matrixinset.h
-       math_nestinset.C
-       math_nestinset.h
-       math_numberinset.C
-       math_numberinset.h
-       math_oversetinset.C
-       math_oversetinset.h
-       math_parinset.C
-       math_parinset.h
-       math_parser.C
-       math_parser.h
-       math_phantominset.C
-       math_phantominset.h
-       math_replace.h
-       math_rootinset.C
-       math_rootinset.h
-       math_scriptinset.C
-       math_scriptinset.h
-       math_sizeinset.C
-       math_sizeinset.h
-       math_spaceinset.C
-       math_spaceinset.h
-       math_splitinset.C
-       math_splitinset.h
-       math_sqrtinset.C
-       math_sqrtinset.h
-       math_stackrelinset.C
-       math_stackrelinset.h
-       math_streamstr.C
-       math_streamstr.h
-       math_stringinset.C
-       math_stringinset.h
-       math_substackinset.C
-       math_substackinset.h
-       math_support.C
-       math_support.h
-       math_symbolinset.C
-       math_symbolinset.h
-       math_tabularinset.C
-       math_tabularinset.h
-       math_tfracinset.C
-       math_tfracinset.h
-       math_unknowninset.C
-       math_unknowninset.h
-       math_undersetinset.C
-       math_undersetinset.h
-       math_xarrowinset.C
-       math_xarrowinset.h
-       math_xymatrixinset.C
-       math_xymatrixinset.h
-       command_inset.h
-       command_inset.C
-       ref_inset.h
-       ref_inset.C
-       #formulamacro.C
-)
-#      math_mboxinset.C
-#      math_mboxinset.h
+file(GLOB mathed_sources ${TOP_SRC_DIR}/src/mathed/*.C)
+file(GLOB mathed_headers ${TOP_SRC_DIR}/src/mathed/*.h)
 
-
-lyx_add_path(mathed_sources ${TOP_SRC_DIR}/src/mathed)
+list(REMOVE_ITEM mathed_sources
+       ${TOP_SRC_DIR}/src/mathed/math_xyarrowinset.C
+       ${TOP_SRC_DIR}/src/mathed/math_mboxinset.C
+       ${TOP_SRC_DIR}/src/mathed/formulamacro.C)
 
 include_directories(${TOP_SRC_DIR}/src/mathed)
 
-add_library(mathed STATIC ${mathed_sources})
+add_library(mathed STATIC ${mathed_sources} ${mathed_headers})