SHARE
TWEET

Untitled

a guest Jan 22nd, 2020 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. project(Foo NONE)
  2.  
  3. cmake_minimum_required(VERSION 3.14)
  4.  
  5. set(MYMODDIR "${CMAKE_CURRENT_SOURCE_DIR}/Modules")
  6. set(MYMODDIR_ALT "${CMAKE_CURRENT_SOURCE_DIR}//Modules")
  7.  
  8. file(WRITE ${MYMODDIR}/FindFoo.cmake "
  9.     message(FATAL_ERROR \"Module found in ${MYMODDIR_ALT} !\")
  10. ")
  11.  
  12. set(CMAKE_MODULE_PATH ${MYMODDIR_ALT})
  13.  
  14. find_package(Foo)
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