Skip to content

Commit

Permalink
fix: CMakeLists include directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord-Turmoil committed Nov 21, 2024
1 parent cf466f3 commit 4986e7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ set(LIBRARY_BASE_PATH "${PROJECT_SOURCE_DIR}")
include_directories("${LIBRARY_BASE_PATH}/include")
file(GLOB_RECURSE SRC_LIST CONFIGURE_DEPENDS "${LIBRARY_BASE_PATH}/src/*.cpp")
add_library(${BINARY_NAME} ${SRC_LIST})
target_include_directories(${BINARY_NAME} PUBLIC ${INCLUDE_DIRECTORIES})
target_include_directories(${BINARY_NAME} PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>"
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")

install (
TARGETS ${BINARY_NAME}
Expand Down

0 comments on commit 4986e7b

Please sign in to comment.