From c660b71b9689af89bc09671e6a6de7f9943e2709 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sat, 6 Apr 2024 01:16:01 +0200 Subject: cmake: freq vars + module example --- src/development/cmake/module/Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/development/cmake/module/Makefile (limited to 'src/development/cmake/module/Makefile') diff --git a/src/development/cmake/module/Makefile b/src/development/cmake/module/Makefile new file mode 100644 index 0000000..39f0389 --- /dev/null +++ b/src/development/cmake/module/Makefile @@ -0,0 +1,14 @@ +DBG ?= n +CMAKE_DBG-y = -DCMAKE_FIND_DEBUG_MODE=1 + +all: + @# CMAKE_MODULE_PATH for include() and find_package module flows. + @# CMAKE_PREFIX_PATH for find_package config flow. + @# Bar_DIR package specific for find_package config flow. + cmake . -B build -DCMAKE_MODULE_PATH="cmake;foo;bar" -DCMAKE_PREFIX_PATH="foo" -DBar_DIR=bar $(CMAKE_DBG-$(DBG)) + +debug: + $(MAKE) all DBG=y + +clean: + $(RM) -r build -- cgit v1.2.3