-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: using cmade/cmate * chore: using new cmate tool * chore: fix CI push path for cpp * chore: fix CI push path for cpp
- Loading branch information
Showing
69 changed files
with
1,732 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ ext/ | |
build/ | ||
acceptance/ | ||
stage/ | ||
.cenv/ | ||
.cmate/ | ||
.built | ||
.configured | ||
.deps-installed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
cmake_minimum_required(VERSION 3.12 FATAL_ERROR) | ||
|
||
project(gherkin-cpp VERSION 1.0.0 LANGUAGES C CXX) | ||
project(cucumber_gherkin VERSION 0.1.0 LANGUAGES C CXX) | ||
|
||
include(GNUInstallDirs) | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD 20) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
set(CMAKE_CXX_EXTENSIONS OFF) | ||
set(CMAKE_POSITION_INDEPENDENT_CODE ON) | ||
|
||
find_package(nlohmann_json CONFIG REQUIRED) | ||
find_package(cucumber-messages CONFIG REQUIRED) | ||
find_package(cucumber_messages CONFIG REQUIRED) | ||
|
||
add_subdirectory(src/lib/gherkin) | ||
add_subdirectory(src/bin/gherkin) | ||
add_subdirectory(src/bin/gherkin-generate-tokens) | ||
|
||
install( | ||
TARGETS | ||
gherkin-cpp | ||
gherkin-bin | ||
gherkin-generate-tokens-bin | ||
EXPORT gherkin-cpp-config | ||
cucumber_gherkin_lib | ||
cucumber_gherkin_bin | ||
cucumber_gherkin_generate_tokens_bin | ||
EXPORT cucumber_gherkin-config | ||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
) | ||
|
||
install( | ||
DIRECTORY "${CMAKE_SOURCE_DIR}/include/" | ||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/gherkin | ||
EXPORT cucumber_gherkin-config | ||
FILE cucumber_gherkin-config.cmake | ||
NAMESPACE cucumber:: | ||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/cucumber_gherkin | ||
) | ||
|
||
install( | ||
EXPORT gherkin-cpp-config | ||
FILE gherkin-cpp-config.cmake | ||
NAMESPACE gherkin-cpp:: | ||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/gherkin-cpp | ||
DIRECTORY "${PROJECT_SOURCE_DIR}/include/gherkin/" | ||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/cucumber | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.