Skip to content

Commit

Permalink
🐛target include directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord-Turmoil committed Nov 30, 2024
1 parent ba22f33 commit de126e2
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 @@ -34,7 +34,9 @@ file(GLOB_RECURSE SRC_LIST CONFIGURE_DEPENDS "${LIBRARY_BASE_PATH}/src/*.cpp")
add_library(${BINARY_NAME} ${SRC_LIST})

# target properties
target_include_directories(${BINARY_NAME} PUBLIC ${PUBLIC_INCLUDE_DIRECTOREIS})
target_include_directories(${BINARY_NAME} PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>"
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
target_link_libraries(${BINARY_NAME} mioc spdlog nlohmann_json)

# install properties
Expand Down

0 comments on commit de126e2

Please sign in to comment.