aboutsummaryrefslogtreecommitdiffhomepage
path: root/development/cmake/module/Makefile
diff options
context:
space:
mode:
authorjohannst <johannst@users.noreply.github.com>2024-04-05 23:16:19 +0000
committerjohannst <johannst@users.noreply.github.com>2024-04-05 23:16:19 +0000
commit63d71256f83e5da6479d90d1bbdaf17ad6d31f02 (patch)
tree764f346960e00afaf945673a365d0063f64f29ff /development/cmake/module/Makefile
parent1d01762f8b174573dd58e6da1630bd92bc193512 (diff)
downloadnotes-63d71256f83e5da6479d90d1bbdaf17ad6d31f02.tar.gz
notes-63d71256f83e5da6479d90d1bbdaf17ad6d31f02.zip
deploy: c660b71b9689af89bc09671e6a6de7f9943e2709
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