diff options
-rw-r--r-- | api/CMakeLists.txt | 2 | ||||
-rw-r--r-- | cmake/opentrack-boilerplate.cmake | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/api/CMakeLists.txt b/api/CMakeLists.txt index a181abb9..0a040a55 100644 --- a/api/CMakeLists.txt +++ b/api/CMakeLists.txt @@ -1,3 +1,3 @@ otr_module(api NO-COMPAT BIN) target_link_libraries(opentrack-api opentrack-options opentrack-compat) -target_include_directories(opentrack-api PUBLIC ${CMAKE_BINARY_DIR}) + diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake index cc197657..1a51413f 100644 --- a/cmake/opentrack-boilerplate.cmake +++ b/cmake/opentrack-boilerplate.cmake @@ -19,6 +19,8 @@ set(new-hier-path "#pragma once #define OPENTRACK_I18N_PATH \"${opentrack-i18n-path}\" ") +include_directories("${CMAKE_BINARY_DIR}") + set(hier-path-filename "${CMAKE_BINARY_DIR}/opentrack-library-path.h") set(orig-hier-path "") if(EXISTS "${hier-path-filename}") |