Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions examples/Calc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
project(Calc)

add_library(Calc STATIC src/Calculator)
add_library(Calc STATIC src/Calculator.cpp)
target_include_directories(Calc INTERFACE src)

if(TARGET GTest::GTest)
add_executable(GTestCalculatorSteps features/step_definitions/GTestCalculatorSteps)
add_executable(GTestCalculatorSteps features/step_definitions/GTestCalculatorSteps.cpp)
target_link_libraries(GTestCalculatorSteps PRIVATE Calc cucumber-cpp GTest::GTest)

list(FIND CMAKE_CXX_COMPILE_FEATURES cxx_variadic_templates HAS_VARIADIC_TEMPLATES)
if(HAS_VARIADIC_TEMPLATES GREATER -1)
add_executable(FuncArgsCalculatorSteps features/step_definitions/FuncArgsCalculatorSteps)
add_executable(FuncArgsCalculatorSteps features/step_definitions/FuncArgsCalculatorSteps.cpp)
target_link_libraries(FuncArgsCalculatorSteps PRIVATE Calc cucumber-cpp GTest::GTest)

target_compile_features(FuncArgsCalculatorSteps PRIVATE cxx_variadic_templates)
endif()
endif()

if(TARGET Boost::unit_test_framework)
add_executable(BoostCalculatorSteps features/step_definitions/BoostCalculatorSteps)
add_executable(BoostCalculatorSteps features/step_definitions/BoostCalculatorSteps.cpp)
target_link_libraries(BoostCalculatorSteps PRIVATE Calc cucumber-cpp Boost::unit_test_framework)
endif()

if(TARGET Qt::Test)
add_executable(QtTestCalculatorSteps features/step_definitions/QtTestCalculatorSteps)
add_executable(QtTestCalculatorSteps features/step_definitions/QtTestCalculatorSteps.cpp)
target_link_libraries(QtTestCalculatorSteps Calc Qt::Test cucumber-cpp)
endif()
4 changes: 2 additions & 2 deletions examples/CalcQt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if(TARGET Qt::Core AND TARGET Qt::Gui AND TARGET Qt::Widgets AND TARGET Qt::Test
add_executable(calcqt src/CalcQt.cpp)
target_link_libraries(calcqt PRIVATE libcalcqt Qt::Widgets)

add_executable(QtTestCalculatorQtSteps features/step_definitions/QtTestCalculatorQtSteps)
add_executable(QtTestCalculatorQtSteps features/step_definitions/QtTestCalculatorQtSteps.cpp)
target_link_libraries(QtTestCalculatorQtSteps PRIVATE libcalcqt Qt::Test cucumber-cpp)

if(TARGET Boost::unit_test_framework)
Expand All @@ -25,7 +25,7 @@ if(TARGET Qt::Core AND TARGET Qt::Gui AND TARGET Qt::Widgets AND TARGET Qt::Test
endif()

if(TARGET GTest::GTest)
add_executable(GTestCalculatorQtSteps features/step_definitions/GTestCalculatorQtSteps)
add_executable(GTestCalculatorQtSteps features/step_definitions/GTestCalculatorQtSteps.cpp)
target_link_libraries(GTestCalculatorQtSteps PRIVATE libcalcqt cucumber-cpp GTest::GTest Qt::Test)
endif()

Expand Down
4 changes: 2 additions & 2 deletions examples/FeatureShowcase/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ if(TARGET GTest::GTest)
endfunction()

add_cucumber_executable(
features/step_definitions/TagSteps
features/step_definitions/TableSteps
features/step_definitions/TagSteps.cpp
features/step_definitions/TableSteps.cpp
)
endif()