Commit ff213b50 authored by Chris Müller's avatar Chris Müller
Browse files

Add default cmake macros for cherry project

parent de930cfe
include(FindPkgConfig)
macro(pkg_dependency DEP_VAR VARIABLE)
pkg_check_modules(${VARIABLE}PKG ${ARGN} ${VARIABLE})
add_definitions(${${VARIABLE}PKG_CFLAGS})
include_directories(${${VARIABLE}PKG_INCLUDE_DIRS})
link_directories(${${VARIABLE}PKG_LIBRARY_DIRS})
list(APPEND ${DEP_VAR} ${${VARIABLE}PKG_LIBRARIES})
endmacro()
Supports Markdown
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