examples: fix include path
authorBrendan Le Foll <brendan.le.foll@intel.com>
Thu, 10 Apr 2014 10:04:02 +0000 (11:04 +0100)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Thu, 10 Apr 2014 10:04:02 +0000 (11:04 +0100)
examples/CMakeLists.txt
examples/hellomaa.cpp
examples/readi2c.cpp

index bcae1bc..358a454 100644 (file)
@@ -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)
index 65f86c5..ba373ac 100644 (file)
@@ -1,6 +1,6 @@
 #include "stdio.h"
 
-#include "../src/maa.h"
+#include "maa.h"
 
 int
 main(int argc, char **argv)
index 523d865..c7ec6a5 100644 (file)
@@ -1,4 +1,4 @@
-#include "../src/maa.h"
+#include "maa.h"
 
 int
 main ()