diff --git a/CMakeLists.txt b/CMakeLists.txt index acdb79d..62116c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,10 +4,14 @@ project(eventpp VERSION 0.1.2) add_library(eventpp INTERFACE) set(CMAKE_CXX_STANDARD 11) +if("${CMAKE_INSTALL_INCLUDEDIR}" STREQUAL "") + set(CMAKE_INSTALL_INCLUDEDIR include) +endif() + target_include_directories( eventpp INTERFACE $ - $ + $ ) add_library(eventpp::eventpp ALIAS eventpp)