diff options
| author | 2019-07-11 22:57:21 +0200 | |
|---|---|---|
| committer | 2019-07-11 23:28:42 +0200 | |
| commit | 48c470b72cf32c49dc146f5859d67708759997b2 (patch) | |
| tree | 4205c6ef6b95830edb507cc8ee68bb1bf7c00ab4 /tests/dice/CMakeLists.txt | |
| parent | 69373b4ec96b7d510e16fccfa1b9f2a2ec790508 (diff) | |
| download | OneRoll-48c470b72cf32c49dc146f5859d67708759997b2.tar.gz OneRoll-48c470b72cf32c49dc146f5859d67708759997b2.zip | |
rework diceparser to run unit tests
Diffstat (limited to 'tests/dice/CMakeLists.txt')
| -rw-r--r-- | tests/dice/CMakeLists.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/dice/CMakeLists.txt b/tests/dice/CMakeLists.txt new file mode 100644 index 0000000..a0f27fd --- /dev/null +++ b/tests/dice/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.5) +project(tst_diceParser) + +enable_testing(true) + +# Tell CMake to run moc when necessary: +set(CMAKE_AUTOMOC ON) + +# As moc files are generated in the binary dir, tell CMake +# to always look for includes there: +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +find_package(Qt5Test REQUIRED) + +add_test(tst_diceParser tst_dice.cpp) + +target_link_libraries(foo Qt5::Test) |