cmake: Auto discover NANOPB_SRC_ROOT_FOLDER
authorKyle Manna <kyle@kylemanna.com>
Thu, 15 Oct 2015 20:56:20 +0000 (13:56 -0700)
committerKyle Manna <kyle@kylemanna.com>
Thu, 15 Oct 2015 20:56:20 +0000 (13:56 -0700)
commit863dddca69983485fdc3faf58c7dd439d0d5bf5d
tree429be9a4ab8a5da3e8317105aaea0ed4f7a02cd6
parenta97617bb41d2e03c670467a0d053b4d2eaae8dad
cmake: Auto discover NANOPB_SRC_ROOT_FOLDER

* Use CMAKE_CURRENT_LIST_DIR to learn the path of the currently running
  file to determine location of NanoPB.
* Simplifies use in other projects.
extra/FindNanopb.cmake