2017-08-05 12:15:33 +02:00
|
|
|
# http://www.levelofindirection.com/journal/2010/12/28/unit-testing-in-c-and-objective-c-just-got-easier.html
|
|
|
|
# Thanks for CATCH!
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(EventBusTest
|
|
|
|
eventbus/EventCollectorTest.cpp
|
|
|
|
eventbus/NotifierTest.cpp
|
2017-08-06 11:22:59 +02:00
|
|
|
)
|
2017-08-06 00:14:35 +02:00
|
|
|
|
|
|
|
SET_TARGET_PROPERTIES(EventBusTest PROPERTIES
|
|
|
|
CXX_STANDARD 14
|
|
|
|
CXX_STANDARD_REQUIRED YES
|
|
|
|
)
|
|
|
|
|
|
|
|
TARGET_COMPILE_OPTIONS(EventBusTest
|
2017-08-06 17:13:00 +02:00
|
|
|
PRIVATE -Wall -pedantic -Wno-unused-private-field -Wnon-virtual-dtor -Wno-gnu
|
|
|
|
-Werror
|
2017-08-05 12:15:33 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
TARGET_INCLUDE_DIRECTORIES(EventBusTest PRIVATE Catch/single_include/)
|
|
|
|
TARGET_LINK_LIBRARIES(EventBusTest PUBLIC Dexode::EventBus)
|