Skip to content

Commit

Permalink
chore: vastly improved config/reconfig detection and workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chybz committed Jan 21, 2024
1 parent fdf8ad3 commit f7e4078
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
add_compile_definitions(_CRT_SECURE_NO_WARNINGS _SCL_SECURE_NO_WARNINGS)
endif()

find_package(nlohmann_json CONFIG REQUIRED)
find_package(cucumber_messages CONFIG REQUIRED)

Expand All @@ -18,9 +22,9 @@ add_subdirectory(src/bin/gherkin-generate-tokens)

install(
TARGETS
cucumber_gherkin_lib
cucumber_gherkin_bin
cucumber_gherkin_generate_tokens_bin
cucumber_gherkin_lib
EXPORT cucumber_gherkin-config
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
Expand Down

0 comments on commit f7e4078

Please sign in to comment.