From 0ec04b6fd395af2cd0e76d3b720b431d3c33d705 Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Thu, 10 Apr 2014 11:04:02 +0100 Subject: [PATCH] examples: fix include path --- examples/CMakeLists.txt | 2 ++ examples/hellomaa.cpp | 2 +- examples/readi2c.cpp | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index bcae1bc..358a454 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,5 +1,7 @@ add_executable (readi2c readi2c.cpp) add_executable (hellomaa hellomaa.cpp) +include_directories(${PROJECT_SOURCE_DIR}/src) + target_link_libraries (hellomaa maa) target_link_libraries (readi2c maa) diff --git a/examples/hellomaa.cpp b/examples/hellomaa.cpp index 65f86c5..ba373ac 100644 --- a/examples/hellomaa.cpp +++ b/examples/hellomaa.cpp @@ -1,6 +1,6 @@ #include "stdio.h" -#include "../src/maa.h" +#include "maa.h" int main(int argc, char **argv) diff --git a/examples/readi2c.cpp b/examples/readi2c.cpp index 523d865..c7ec6a5 100644 --- a/examples/readi2c.cpp +++ b/examples/readi2c.cpp @@ -1,4 +1,4 @@ -#include "../src/maa.h" +#include "maa.h" int main ()