Commit 1416f985 authored by Chad Versace's avatar Chad Versace Committed by Paul Berry

cmake: Define wrapper functions piglit_add_{executable,library}

For now, `piglit_add_executable` is a trivial wrapper around
`add_executable`.  Ditto for `piglit_add_library`.

A subsequent commit will leverage the wrappers to add to each object file
an explicit dependency on the header files generated by piglit_dispatch.
Signed-off-by: default avatarChad Versace <chad.versace@linux.intel.com>
parent e5056341
......@@ -47,3 +47,29 @@ function(piglit_include_target_api)
endif(EXISTS ${api_file})
endfunction(piglit_include_target_api)
#
# For now, this is a trivial wrapper around `add_executable`.
#
# In the future, it will be used to add to each object file an explicit
# dependency on the header files generated by piglit_dispatch.
#
function(piglit_add_executable name)
list(REMOVE_AT ARGV 0)
add_executable(${name} ${ARGV})
endfunction(piglit_add_executable)
#
# For now, this is a trivial wrapper around `add_library`.
#
# In the future, it will be used to add to each object file an explicit
# dependency on the header files generated by piglit_dispatch.
#
function(piglit_add_library name)
list(REMOVE_AT ARGV 0)
add_library(${name} ${ARGV})
endfunction(piglit_add_library)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment