Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ThoSe1990 committed Nov 4, 2023
1 parent 721fda2 commit a4f7cad
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ jobs:
sudo apt-get upgrade -y
sudo apt-get install build-essential -y
sudo apt install python3-pip -y
pip3 install cmake
sudo pip3 install cmake
sudo pip3 install conan
conan profile detect
conan install . -of ./build --build missing
cmake -S . -B ./build -DCMAKE_TOOLCHAIN_FILE=./build/conan_toolchain.cmake
cmake --build ./build
./build/bin/unittests
sudo conan profile detect
sudo conan install . -of ./build --build missing
sudo cmake -S . -B ./build -DCMAKE_TOOLCHAIN_FILE=./build/conan_toolchain.cmake
sudo cmake --build ./build -j12
sudo ./build/bin/unittests
# - uses: actions/upload-artifact@v3
# with:
# name: unittests
Expand Down
36 changes: 18 additions & 18 deletions gtest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@ set(target unittests)
find_package(GTest)

if(GTest_FOUND)

set(FEATURES_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/cpp_test_features")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/paths.hpp.template ${CMAKE_CURRENT_SOURCE_DIR}/paths.hpp)

add_executable(${target}
${CMAKE_CURRENT_SOURCE_DIR}/compile_errors.cc
${CMAKE_CURRENT_SOURCE_DIR}/runtime_errors.cc
${CMAKE_CURRENT_SOURCE_DIR}/runtime_tags.cc
${CMAKE_CURRENT_SOURCE_DIR}/run_scenarios.cc
${CMAKE_CURRENT_SOURCE_DIR}/run_single_scenario.cc
${CMAKE_CURRENT_SOURCE_DIR}/step_finder.cc
${CMAKE_CURRENT_SOURCE_DIR}/step_args.cc
${CMAKE_CURRENT_SOURCE_DIR}/tags.cc
${CMAKE_CURRENT_SOURCE_DIR}/hooks.cc
${CMAKE_CURRENT_SOURCE_DIR}/cpp_bindings.cc
${CMAKE_CURRENT_SOURCE_DIR}/cpp_scenario_context.cc
)
target_include_directories(${target} PRIVATE ${PROJECT_SOURCE_DIR}/src ${PROJECT_SOURCE_DIR}/src/cwt/implementation)
target_link_libraries(${target} cucumber-cpp-nomain GTest::gtest_main)
set(FEATURES_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/cpp_test_features")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/paths.hpp.template ${CMAKE_CURRENT_SOURCE_DIR}/paths.hpp)

add_executable(${target}
${CMAKE_CURRENT_SOURCE_DIR}/compile_errors.cc
${CMAKE_CURRENT_SOURCE_DIR}/runtime_errors.cc
${CMAKE_CURRENT_SOURCE_DIR}/runtime_tags.cc
${CMAKE_CURRENT_SOURCE_DIR}/run_scenarios.cc
${CMAKE_CURRENT_SOURCE_DIR}/run_single_scenario.cc
${CMAKE_CURRENT_SOURCE_DIR}/step_finder.cc
${CMAKE_CURRENT_SOURCE_DIR}/step_args.cc
${CMAKE_CURRENT_SOURCE_DIR}/tags.cc
${CMAKE_CURRENT_SOURCE_DIR}/hooks.cc
${CMAKE_CURRENT_SOURCE_DIR}/cpp_bindings.cc
${CMAKE_CURRENT_SOURCE_DIR}/cpp_scenario_context.cc
)
target_include_directories(${target} PRIVATE ${PROJECT_SOURCE_DIR}/src ${PROJECT_SOURCE_DIR}/src/cwt/implementation)
target_link_libraries(${target} cucumber-cpp-nomain GTest::gtest_main)

endif()

0 comments on commit a4f7cad

Please sign in to comment.