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 ()