From 8ff9ef68a0274822b6c5e10b37f050579be3839e Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Mon, 19 Aug 2019 09:30:39 +0200 Subject: Add cmake build files Change-Id: I6152e54c47cf0c07d3c415d38fc39b859bcf65de Reviewed-by: Cristian Adam Reviewed-by: Eike Ziller --- CMakeLists.txt | 10 ++++++++++ plugins/haskell/CMakeLists.txt | 29 +++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 plugins/haskell/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..b260708 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,10 @@ +cmake_minimum_required(VERSION 3.9) + +project(Haskell) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) +set(CMAKE_CXX_STANDARD 14) + +add_subdirectory(plugins/haskell) diff --git a/plugins/haskell/CMakeLists.txt b/plugins/haskell/CMakeLists.txt new file mode 100644 index 0000000..d2e08af --- /dev/null +++ b/plugins/haskell/CMakeLists.txt @@ -0,0 +1,29 @@ +find_package(QtCreator COMPONENTS Core TextEditor ProjectExplorer REQUIRED) +find_package(Qt5 COMPONENTS Widgets REQUIRED) + +add_qtc_plugin(Haskell + PLUGIN_DEPENDS + QtCreator::Core QtCreator::TextEditor QtCreator::ProjectExplorer + DEPENDS Qt5::Widgets + SOURCES + filecache.cpp filecache.h + followsymbol.cpp followsymbol.h + ghcmod.cpp ghcmod.h + haskell.qrc + haskell_global.h + haskellbuildconfiguration.cpp haskellbuildconfiguration.h + haskellcompletionassist.cpp haskellcompletionassist.h + haskellconstants.h + haskelldocument.cpp haskelldocument.h + haskelleditorfactory.cpp haskelleditorfactory.h + haskelleditorwidget.cpp haskelleditorwidget.h + haskellhighlighter.cpp haskellhighlighter.h + haskellhoverhandler.cpp haskellhoverhandler.h + haskellmanager.cpp haskellmanager.h + haskellplugin.cpp haskellplugin.h + haskellproject.cpp haskellproject.h + haskellrunconfiguration.cpp haskellrunconfiguration.h + haskelltokenizer.cpp haskelltokenizer.h + optionspage.cpp optionspage.h + stackbuildstep.cpp stackbuildstep.h +) -- cgit v1.2.3