summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/common.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/cmake/common.cmake b/cmake/common.cmake
index ec0ffcf..4aa7578 100644
--- a/cmake/common.cmake
+++ b/cmake/common.cmake
@@ -123,3 +123,18 @@ INCLUDE_DIRECTORIES(${EXTRA_INCLUDE_DIRS})
if(NOT BINDINGS_LINK_FLAG)
set(BINDINGS_LINK_FLAG "-Wl,--version-script=${PKG_TEMPLATE_PREFIX}/cmake/export.map")
endif()
+
+macro(project_build)
+ set (ARGSLIST ${ARGN})
+ list(LENGTH ARGSLIST ARGSNUM)
+ if(${ARGSNUM} GREATER 0)
+ set(pattern "${ARGV0}")
+ else()
+ set(pattern "*")
+ endif()
+
+ project_subdirs_add(${pattern})
+ project_targets_populate()
+ project_package_build()
+ project_closing_msg()
+endmacro(project_build) \ No newline at end of file