diff options
author | Eike Ziller <eike.ziller@qt.io> | 2022-01-26 14:06:11 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2022-01-26 14:17:04 +0000 |
commit | a3536cae3575d5febbd88b83640c75abf90883c9 (patch) | |
tree | a369219f52e241b6fda4f6bdf6039007927bbb46 | |
parent | c1eca424e6e9e505a378cf131f5c0ebc060983a5 (diff) |
Add test to CMake build
Change-Id: I92f4f54dde76d8234f93d293e250045152bfb8fd
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | plugins/haskell/CMakeLists.txt | 3 | ||||
-rw-r--r-- | tests/auto/tokenizer/CMakeLists.txt | 8 |
3 files changed, 12 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 929b3aa..2ab32c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,4 +7,8 @@ set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) set(CMAKE_CXX_STANDARD 17) +find_package(QtCreator COMPONENTS Core REQUIRED) +find_package(Qt5 COMPONENTS Widgets REQUIRED) + add_subdirectory(plugins/haskell) +add_subdirectory(tests/auto/tokenizer) diff --git a/plugins/haskell/CMakeLists.txt b/plugins/haskell/CMakeLists.txt index 8a9a68f..8f6cc4f 100644 --- a/plugins/haskell/CMakeLists.txt +++ b/plugins/haskell/CMakeLists.txt @@ -1,6 +1,3 @@ -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 diff --git a/tests/auto/tokenizer/CMakeLists.txt b/tests/auto/tokenizer/CMakeLists.txt new file mode 100644 index 0000000..90474ca --- /dev/null +++ b/tests/auto/tokenizer/CMakeLists.txt @@ -0,0 +1,8 @@ +add_qtc_test(tst_tokenizer + DEPENDS Qt5::Core Qt5::Test + INCLUDES ../../../plugins/haskell + SOURCES + tst_tokenizer.cpp + ../../../plugins/haskell/haskelltokenizer.cpp + ../../../plugins/haskell/haskelltokenizer.h +) |