diff --git a/CMakeLists.txt b/CMakeLists.txt index b2a41b6..3893989 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,4 +4,6 @@ project(nestlog VERSION 0.1) enable_language(CXX) enable_testing() +include(cmake/nestlog.cmake) + add_subdirectory(example) diff --git a/example/ex1/CMakeLists.txt b/example/ex1/CMakeLists.txt index ce8d9a5..6af29d7 100644 --- a/example/ex1/CMakeLists.txt +++ b/example/ex1/CMakeLists.txt @@ -1,3 +1,2 @@ add_executable(ex1 ex1.cpp) - -target_include_directories(ex1 PUBLIC ${PROJECT_SOURCE_DIR}/include) +xo_include_options(ex1) diff --git a/example/ex2/CMakeLists.txt b/example/ex2/CMakeLists.txt index 76ae6f6..1ac5735 100644 --- a/example/ex2/CMakeLists.txt +++ b/example/ex2/CMakeLists.txt @@ -1,3 +1,2 @@ add_executable(ex2 ex2.cpp) - -target_include_directories(ex2 PUBLIC ${PROJECT_SOURCE_DIR}/include) +xo_include_options(ex2)