Skip to content

Commit 2652d4b

Browse files
committed
fixup! feat: Singleton class mock test support for all modules
1 parent cbe7f11 commit 2652d4b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

languages/cpp/src/shared/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ option(FIREBOLT_ENABLE_STATIC_LIB "Create Firebolt library as Static library" OF
2727
option(ENABLE_BIDIRECTIONAL "Enable bidirectional communication over WS" OFF)
2828
option(ENABLE_TESTS "Build openrpc native test" ON)
2929
option(ENABLE_UNIT_TESTS "Enable unit test" ON)
30+
option(ENABLE_MOCK_TESTS "Enable mock test" ON)
3031
option(ENABLE_COVERAGE "Enable code coverage build." ON)
3132
option(ENABLE_INTERACTIVE_APP "Enable interactive application" ON)
3233
option(FIREBOLT_PLAIN_LOG "Disable log coloring" OFF)

languages/cpp/src/shared/src/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,11 @@ endif ()
3939

4040
add_library(${TARGET} ${FIREBOLT_LIBRARY_TYPE} ${SOURCES})
4141

42-
if(ENABLE_UNIT_TESTS)
42+
if(ENABLE_MOCK_TESTS)
4343
add_compile_definitions(MOCK_TEST)
44+
endif()
45+
46+
if(ENABLE_UNIT_TESTS)
4447
target_compile_definitions(FireboltSDK PRIVATE UNIT_TEST)
4548
endif()
4649

0 commit comments

Comments
 (0)