SHARE
TWEET

Untitled

a guest Feb 7th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. macro(use_props_new TARGET CONFIGS PROPS_FILE)
  2.     set(PROPS_TARGET "${TARGET}")
  3.     foreach(PROPS_CONFIG ${CONFIGS})
  4.         string(TOUPPER "${PROPS_CONFIG}" PROPS_CONFIG_U)
  5.  
  6.         get_filename_component(ABSOLUTE_PROPS_FILE "${PROPS_FILE}" ABSOLUTE BASE_DIR "${CMAKE_CURRENT_LIST_DIR}")
  7.         if(EXISTS "${ABSOLUTE_PROPS_FILE}")
  8.             include("${ABSOLUTE_PROPS_FILE}")
  9.         else()
  10.             message(WARNING "Corresponding cmake file from props \"${ABSOLUTE_PROPS_FILE}\" doesn't exist")
  11.         endif()
  12.     endforeach()
  13. endmacro()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top