diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2016-08-05 15:03:14 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2016-08-05 15:03:14 +0200 |
commit | 535d856a39b177642724bcfe6009985bf4262dbd (patch) | |
tree | 4162702b31cff209a859ad22de426c7b83d38830 /examples/CMakeLists.txt | |
parent | ff87ea9045a6e0979311ae7b25055d6b53b0a13d (diff) | |
download | kicad-utils-535d856a39b177642724bcfe6009985bf4262dbd.tar.gz kicad-utils-535d856a39b177642724bcfe6009985bf4262dbd.tar.bz2 kicad-utils-535d856a39b177642724bcfe6009985bf4262dbd.tar.xz kicad-utils-535d856a39b177642724bcfe6009985bf4262dbd.zip |
o More flexible parsing. More rules needs to be updated.
Diffstat (limited to 'examples/CMakeLists.txt')
-rw-r--r-- | examples/CMakeLists.txt | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 58048ff..2cb3286 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,11 +1,14 @@ -cmake_minimum_required(VERSION 3.5) -project(kicad_utils_examples) +# If we're not included by the msgflo project, find the sources the normal way. This is what you should do in your +# application +if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) + cmake_minimum_required(VERSION 3.5) + project(kicad_utils_examples) -find_package(KicadUtils QUIET) - -if (NOT KicadUtils_FOUND) - message(FATAL_ERROR "The KicadUtils CMake package was not found. Did you pass the correct value for KicadUtils_DIR?\nIt should probably be something like KicadUtils_DIR=$HOME/opt/kicad-utils/lib/cmake/KicadUtils") + find_package(KicadUtils) + if (NOT KicadUtils_FOUND) + message(FATAL_ERROR "The KicadUtils CMake package was not found. Did you pass the correct value for KicadUtils_DIR?\nIt should probably be something like KicadUtils_DIR=$HOME/opt/kicad-utils/lib/cmake/KicadUtils") + endif () endif () -add_subdirectory(arduino-led) -add_subdirectory(intel-quark-d2000) +#add_subdirectory(arduino-led) +#add_subdirectory(intel-quark-d2000) |