aboutsummaryrefslogtreecommitdiff
path: root/contrib/blast/blastConfig.cmake.in
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2026-03-13 23:48:36 +0000
committerXin LI <delphij@FreeBSD.org>2026-03-13 23:48:36 +0000
commit280d433d4c13f3b31722d446ec868053887caf06 (patch)
tree7ba0c0678315c114dcef41857e7710f6b3e31bc5 /contrib/blast/blastConfig.cmake.in
parentf4695a30267c5d31987c7bc3eda906f55a8761be (diff)
Diffstat (limited to 'contrib/blast/blastConfig.cmake.in')
-rw-r--r--contrib/blast/blastConfig.cmake.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/blast/blastConfig.cmake.in b/contrib/blast/blastConfig.cmake.in
new file mode 100644
index 000000000000..5909ac4f58ee
--- /dev/null
+++ b/contrib/blast/blastConfig.cmake.in
@@ -0,0 +1,18 @@
+@PACKAGE_INIT@
+
+set(_blast_supported_components "shared" "static")
+
+if(blast_FIND_COMPONENTS)
+ foreach(_comp ${blast_FIND_COMPONENTS})
+ if(NOT _comp IN_LIST _blast_supported_components)
+ set(blast_FOUND False)
+ set(blast_NOT_FOUND_MESSAGE "Unsupported component: ${_comp}")
+ endif(NOT _comp IN_LIST _blast_supported_components)
+
+ include("${CMAKE_CURRENT_LIST_DIR}/blast-${_comp}.cmake")
+ endforeach(_comp ${blast_FIND_COMPONENTS})
+else(blast_FIND_COMPONENTS)
+ foreach(_component_config IN LISTS _blast_supported_components)
+ include("${CMAKE_CURRENT_LIST_DIR}/blast-${_component_config}.cmake")
+ endforeach(_component_config IN LISTS _blast_supported_components)
+endif(blast_FIND_COMPONENTS)