From 6787937391ec245733ea0fc35f13e8f3e3c09af7 Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Thu, 11 Nov 2021 08:28:42 -0800 Subject: [PATCH] Use ign_install_all_headers in example Confirm location of auto-generated headers by including them from AlmostEmpty.cc Signed-off-by: Steve Peters --- examples/no_ignition_prefix/include/CMakeLists.txt | 1 + examples/no_ignition_prefix/include/no_ign/CMakeLists.txt | 1 + examples/no_ignition_prefix/include/no_ign/config.hh.in | 0 examples/no_ignition_prefix/src/AlmostEmpty.cc | 2 ++ 4 files changed, 4 insertions(+) create mode 100644 examples/no_ignition_prefix/include/no_ign/CMakeLists.txt create mode 100644 examples/no_ignition_prefix/include/no_ign/config.hh.in diff --git a/examples/no_ignition_prefix/include/CMakeLists.txt b/examples/no_ignition_prefix/include/CMakeLists.txt index e69de29b..118eec0f 100644 --- a/examples/no_ignition_prefix/include/CMakeLists.txt +++ b/examples/no_ignition_prefix/include/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(no_ign) diff --git a/examples/no_ignition_prefix/include/no_ign/CMakeLists.txt b/examples/no_ignition_prefix/include/no_ign/CMakeLists.txt new file mode 100644 index 00000000..439642e6 --- /dev/null +++ b/examples/no_ignition_prefix/include/no_ign/CMakeLists.txt @@ -0,0 +1 @@ +ign_install_all_headers() diff --git a/examples/no_ignition_prefix/include/no_ign/config.hh.in b/examples/no_ignition_prefix/include/no_ign/config.hh.in new file mode 100644 index 00000000..e69de29b diff --git a/examples/no_ignition_prefix/src/AlmostEmpty.cc b/examples/no_ignition_prefix/src/AlmostEmpty.cc index a8e52d60..d3029192 100644 --- a/examples/no_ignition_prefix/src/AlmostEmpty.cc +++ b/examples/no_ignition_prefix/src/AlmostEmpty.cc @@ -15,6 +15,8 @@ * */ +#include +#include #include namespace no_ignition_prefix