aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-11-01 19:43:42 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-11-01 19:44:32 +0100
commit748608275e142428a2f2107d647b3a88c9cf48a0 (patch)
tree8e6296c46fa80d4b83e6fabae5b4861bd916895b /test
parent2f011257299cc7d7073b752453dcac254df7a018 (diff)
downloadsysc-playground-748608275e142428a2f2107d647b3a88c9cf48a0.tar.gz
sysc-playground-748608275e142428a2f2107d647b3a88c9cf48a0.zip
cmake: create simulations list instead listing simulation directly in the foreach loop, fix test cmake file
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 1d6b55c..9c76576 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -19,11 +19,11 @@ macro(test_int name kind)
add_executable(${target} ${name}.cc)
target_include_directories(${target} PRIVATE ${src})
target_compile_options(${target} PRIVATE -Wall -Wextra)
- if(${kind} STREQUAL "gtest")
+ if("${kind}" STREQUAL "gtest")
target_link_libraries(${target} GTest::gmock_main)
target_link_libraries(${target} SystemC::systemc)
gtest_discover_tests(${target})
- elseif(${kind} STREQUAL "sim")
+ elseif("${kind}" STREQUAL "sim")
target_link_libraries(${target} SystemC::systemc)
add_test(NAME ${target} COMMAND ${target})
else()