diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 290d761..85001a7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,5 +1,3 @@ -include_directories(${PROJECT_SOURCE_DIR}/include) - option(ENABLE_IO_THREAD "Start up a separate I/O thread, otherwise I'd need to call an update function" ON) option(USE_STATIC_CRT "Use /MT[d] for dynamic library" OFF) option(WARNINGS_AS_ERRORS "When enabled, compiles with `-Werror` (on *nix platforms)." OFF) @@ -71,6 +69,7 @@ if(UNIX) endif(APPLE) add_library(discord-rpc ${BASE_RPC_SRC}) + target_include_directories(discord-rpc INTERFACE ${PROJECT_SOURCE_DIR}/include) target_link_libraries(discord-rpc PUBLIC pthread) if (APPLE)