diff --git a/all/CMakeLists.txt b/all/CMakeLists.txt index 8092382..b9ca365 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 0000000..87f9c87 --- /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 a932149..c923fa3 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 74cd08d..b8ea4ea 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 ----