Skip to content
Snippets Groups Projects
Commit 6cedf928 authored by Kyle Manna's avatar Kyle Manna
Browse files

examples: cmake_simple: Use auto discovered path

* No need to specify the src path and the module path. Let cmake do it.
parent 863dddca
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required(VERSION 2.8)
project(NANOPB_CMAKE_SIMPLE C)
set(NANOPB_SRC_ROOT_FOLDER ${CMAKE_CURRENT_SOURCE_DIR}/../..)
set(CMAKE_MODULE_PATH ${NANOPB_SRC_ROOT_FOLDER}/extra)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../extra)
find_package(Nanopb REQUIRED)
include_directories(${NANOPB_INCLUDE_DIRS})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment