diff --git a/examples/Calc/CMakeLists.txt b/examples/Calc/CMakeLists.txt index 14f85f53..fe3d335b 100644 --- a/examples/Calc/CMakeLists.txt +++ b/examples/Calc/CMakeLists.txt @@ -1,15 +1,15 @@ 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) @@ -17,11 +17,11 @@ if(TARGET GTest::GTest) 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() diff --git a/examples/CalcQt/CMakeLists.txt b/examples/CalcQt/CMakeLists.txt index 1d306421..52dbe983 100644 --- a/examples/CalcQt/CMakeLists.txt +++ b/examples/CalcQt/CMakeLists.txt @@ -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) @@ -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() diff --git a/examples/FeatureShowcase/CMakeLists.txt b/examples/FeatureShowcase/CMakeLists.txt index 3955de7c..f87e6f47 100644 --- a/examples/FeatureShowcase/CMakeLists.txt +++ b/examples/FeatureShowcase/CMakeLists.txt @@ -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()