From 71fc3d5c890f57fb7f979c6176d97da0f04d0801 Mon Sep 17 00:00:00 2001 From: Brenden Blanco Date: Wed, 28 Jun 2017 17:37:06 -0700 Subject: move api and create dependent option Move the C++ api files under a new subdirectory. Use CMAKE_DEPENDENT_OPTION to enforce sdt->cpp_api relationship. Since linking .a into a .so can cause global symbols to be dropped, add a helper file to force exported symbols to be retained (link_all.cc). This problem doesn't exist for building the static cpp examples. Signed-off-by: Brenden Blanco --- examples/cpp/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'examples') diff --git a/examples/cpp/CMakeLists.txt b/examples/cpp/CMakeLists.txt index 49da8296..7d6ccee2 100644 --- a/examples/cpp/CMakeLists.txt +++ b/examples/cpp/CMakeLists.txt @@ -2,6 +2,7 @@ # Licensed under the Apache License, Version 2.0 (the "License") include_directories(${CMAKE_SOURCE_DIR}/src/cc) +include_directories(${CMAKE_SOURCE_DIR}/src/cc/api) option(INSTALL_CPP_EXAMPLES "Install C++ examples. Those binaries are statically linked and can take plenty of disk space" OFF) -- cgit v1.2.3