]> git.lyx.org Git - lyx.git/blobdiff - development/cmake/src/frontends/controllers/CMakeLists.txt
use glob instead of lists
[lyx.git] / development / cmake / src / frontends / controllers / CMakeLists.txt
index 8bd60d65a7cd9682900a611159327c9c8e83de81..a092a5e8c5f78ed87c2cac4f323411a29014b44f 100644 (file)
 project(controllers)
 
-set(controllers_sources
-       Dialog.C
-       Dialog.h
-       Kernel.C
-       Kernel.h
-       biblio.C
-       biblio.h
-       character.C
-       character.h
-       frnt_lang.C
-       frnt_lang.h
-       tex_helpers.C
-       tex_helpers.h
-       BCView.h
-       BCView.C
-       ButtonController.C
-       ButtonController.h
-       ButtonPolicies.C
-       ButtonPolicies.h
-       ControlAboutlyx.C
-       ControlAboutlyx.h
-       ControlBibtex.C
-       ControlBibtex.h
-       ControlBox.C
-       ControlBox.h
-       ControlBranch.C
-       ControlBranch.h
-       ControlCharacter.C
-       ControlCharacter.h
-       ControlChanges.C
-       ControlChanges.h
-       ControlCitation.C
-       ControlCitation.h
-       ControlCommand.C
-       ControlCommand.h
-       ControlCommandBuffer.C
-       ControlCommandBuffer.h
-       ControlDocument.C
-       ControlDocument.h
-       ControlErrorList.C
-       ControlErrorList.h
-       ControlERT.C
-       ControlERT.h
-       ControlExternal.C
-       ControlExternal.h
-       ControlFloat.C
-       ControlFloat.h
-       ControlGraphics.C
-       ControlGraphics.h
-       ControlInclude.C
-       ControlInclude.h
-       ControlLog.C
-       ControlLog.h
-       ControlViewSource.C
-       ControlViewSource.h
-       ControlMath.C
-       ControlMath.h
-       ControlNote.C
-       ControlNote.h
-       ControlParagraph.C
-       ControlParagraph.h
-       ControlPreamble.C
-       ControlPreamble.h
-       ControlPrefs.C
-       ControlPrefs.h
-       ControlPrint.C
-       ControlPrint.h
-       ControlRef.C
-       ControlRef.h
-       ControlSearch.C
-       ControlSearch.h
-       ControlSendto.C
-       ControlSendto.h
-       ControlShowFile.C
-       ControlShowFile.h
-       ControlSpellchecker.C
-       ControlSpellchecker.h
-       ControlTabular.C
-       ControlTabular.h
-       ControlTabularCreate.C
-       ControlTabularCreate.h
-       ControlTexinfo.C
-       ControlTexinfo.h
-       ControlThesaurus.C
-       ControlThesaurus.h
-       ControlToc.C
-       ControlToc.h
-       ControlVSpace.C
-       ControlVSpace.h
-       ControlWrap.C
-       ControlWrap.h
-       helper_funcs.C
-       helper_funcs.h
-)
-
-lyx_add_path(controllers_sources ${TOP_SRC_DIR}/src/frontends/controllers)
+file(GLOB controllers_sources ${TOP_SRC_DIR}/src/frontends/controllers/*.C)
+file(GLOB controllers_headers ${TOP_SRC_DIR}/src/frontends/controllers/*.h)
 
 include_directories(${TOP_SRC_DIR}/src/frontends/controllers)
 
-add_library(controllers STATIC ${controllers_sources})
+add_library(controllers STATIC ${controllers_sources} ${controllers_headers})
 
 target_link_libraries(controllers boost_regex boost_filesystem)