aboutsummaryrefslogtreecommitdiffhomepage
path: root/development/cmake/module/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'development/cmake/module/Makefile')
-rw-r--r--development/cmake/module/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/development/cmake/module/Makefile b/development/cmake/module/Makefile
new file mode 100644
index 0000000..39f0389
--- /dev/null
+++ b/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