Skip to content

Commit c6a4605

Browse files
[c]: install headers under cucumber/gherkin/ and .cmake files under gherkin/ (#346)
* [c]: install headers under cucumber/gherkin/ Rather than installing all the C headers directly under e.g. `/usr/include`, put them in a subdirectory like `/usr/include/cucumber/gherkin`. This is *not* the same directory as the C++ headers, which have an extra `cucumber/` corresponding to the `cucumber::` C++ namespace, e.g. `/usr/include/cucumber/cucumber/gherkin/`. See cucumber/messages#267 (comment). * [c]: install cmake configs under gherkin/ Rather than installing `.cmake` files directly under e.g. `/usr/lib/cmake`, put them in a subdirectory like `/usr/lib/cmake/gherkin`. C++ CMake files are currently installed under e.g. `/usr/lib/cmake/cucumber_gherkin`; I think the leading `cucumber_` corresponds to the `cucumber::` C++ namespace, which is why I have chosen just `gherkin` for the C CMake files.
1 parent 96b5f3f commit c6a4605

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

c/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,14 @@ install(
155155

156156
install(
157157
DIRECTORY "${PROJECT_SOURCE_DIR}/include/"
158-
DESTINATION ${include_install_dir}
158+
DESTINATION ${include_install_dir}/cucumber/gherkin
159159
FILES_MATCHING PATTERN "*.*h")
160160

161161
install(
162162
FILES "${project_config}"
163-
DESTINATION "${config_install_dir}")
163+
DESTINATION "${config_install_dir}/gherkin")
164164

165165
install(
166166
EXPORT "${targets_export_name}"
167167
NAMESPACE "${namespace}"
168-
DESTINATION "${config_install_dir}")
168+
DESTINATION "${config_install_dir}/gherkin")

0 commit comments

Comments
 (0)