diff --git a/cmake/PIPMacros.cmake b/cmake/PIPMacros.cmake index 38f5bf0b..18e75449 100644 --- a/cmake/PIPMacros.cmake +++ b/cmake/PIPMacros.cmake @@ -1,3 +1,22 @@ +# pip_code_model( file0 [file1 ...] [OPTIONS opt0 [opt1 ...]] [ABSOLUTE]) +# +# Generate code model files for source files file0 [file1 ...] +# +# Options you can see by exec "pip_cmg -h" +# If not ABSOLUTE source files will be prepended by CMAKE_CURRENT_SOURCE_DIR +# You should add ${} to your target +# +# +# +# +# pip_resources( file) +# +# Generate C++ files for resource file +# You should add ${} to your target +# +# + + macro(PIP_EXTRACT_OPTIONS _pip_files _pip_options _abs) set(${_pip_files}) set(${_pip_options}) @@ -20,10 +39,6 @@ macro(PIP_EXTRACT_OPTIONS _pip_files _pip_options _abs) endmacro() -# usage: pip_code_model( file0 [file1 ...] [OPTIONS opt0 [opt1 ...]] [ABSOLUTE]) -# options you can see by exec "pip_cmg -h" -# if not ABSOLUTE source files will be prepended by CMAKE_CURRENT_SOURCE_DIR -# add ${} to your target macro(pip_code_model RESULT) PIP_EXTRACT_OPTIONS(CCM_SRC OPTS ABS ${ARGN}) #message(STATUS "src = ${CCM_SRC}") @@ -59,8 +74,6 @@ macro(pip_code_model RESULT) endmacro() -# usage: pip_resources( file) -# add ${} to your target macro(pip_resources RESULT INPUT) #message(STATUS "src = ${CCM_SRC}") #message(STATUS "result = ${RESULT}")