diff --git a/all/CMakeLists.txt b/all/CMakeLists.txt index 80923828..b9ca365e 100644 --- a/all/CMakeLists.txt +++ b/all/CMakeLists.txt @@ -5,6 +5,7 @@ cmake_minimum_required(VERSION 3.14...3.22) project(BuildAll LANGUAGES CXX) +include(../cmake/options.cmake) include(../cmake/tools.cmake) # needed to generate test target diff --git a/cmake/options.cmake b/cmake/options.cmake new file mode 100644 index 00000000..87f9c879 --- /dev/null +++ b/cmake/options.cmake @@ -0,0 +1 @@ +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) diff --git a/standalone/CMakeLists.txt b/standalone/CMakeLists.txt index a9321491..c923fa3d 100644 --- a/standalone/CMakeLists.txt +++ b/standalone/CMakeLists.txt @@ -4,6 +4,7 @@ project(GreeterStandalone LANGUAGES CXX) # --- Import tools ---- +include(../cmake/options.cmake) include(../cmake/tools.cmake) # ---- Dependencies ---- diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 74cd08d2..b8ea4ea9 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -9,6 +9,7 @@ option(TEST_INSTALLED_VERSION "Test the version found by find_package" OFF) # --- Import tools ---- +include(../cmake/options.cmake) include(../cmake/tools.cmake) # ---- Dependencies ----