diff --git a/CMakeLists.txt b/CMakeLists.txt index 0540fa0..a2d8ec8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,8 +19,6 @@ endif() add_subdirectory(lib) add_subdirectory(driver) -target_include_directories(nod PUBLIC $) -install(DIRECTORY include/nod DESTINATION include) set(version_config_file "${PROJECT_BINARY_DIR}/nodConfigVersion.cmake") set(config_file "${PROJECT_BINARY_DIR}/nodConfig.cmake") diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 5be7033..802027a 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -21,6 +21,11 @@ add_library(nod ../include/nod/sha1.h ../include/nod/Util.hpp ) + +target_include_directories(nod PUBLIC + $ +) + target_link_libraries(nod PUBLIC logvisor) if(WIN32) @@ -41,3 +46,5 @@ install( ARCHIVE DESTINATION "lib" INCLUDES DESTINATION include # This sets the INTERFACE_INCLUDE_DIRECTORIES property of the target. ) + +install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../include/nod DESTINATION include)