Skip to content

Commit

Permalink
Link nlohmann_json at the top level
Browse files Browse the repository at this point in the history
  • Loading branch information
bifurcation committed Oct 31, 2024
1 parent 7d94b14 commit 1f192cc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ set(VCPKG_BUILD_TYPE release)
# Internal libraries
add_subdirectory(lib)

# External libraries
find_package(nlohmann_json REQUIRED)

# Third-Party libraries in tree
add_subdirectory(third_party)

Expand All @@ -118,7 +121,11 @@ file(GLOB_RECURSE LIB_SOURCES CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/src

add_library(${LIB_NAME} ${LIB_HEADERS} ${LIB_SOURCES})
add_dependencies(${LIB_NAME} bytes tls_syntax hpke)
target_link_libraries(${LIB_NAME} bytes tls_syntax hpke)
target_link_libraries(${LIB_NAME}
PRIVATE
nlohmann_json::nlohmann_json
PUBLIC
bytes tls_syntax hpke)
target_include_directories(${LIB_NAME}
PUBLIC
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
Expand Down

0 comments on commit 1f192cc

Please sign in to comment.