mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-14 16:58:34 +00:00
build: add add_library alias to cmake
this makes it possible to do: ```cmake find_package(cpp-jwt REQUIRED) add_executable(main main.cpp) target_link_libraries(main cpp-jwt::cpp-jwt) ```
This commit is contained in:
parent
4b6ed54e2e
commit
79d2c49b32
1 changed files with 1 additions and 0 deletions
|
@ -47,6 +47,7 @@ else()
|
||||||
add_definitions(-DCPP_JWT_USE_VENDORED_NLOHMANN_JSON)
|
add_definitions(-DCPP_JWT_USE_VENDORED_NLOHMANN_JSON)
|
||||||
endif()
|
endif()
|
||||||
target_compile_features(${PROJECT_NAME} INTERFACE cxx_std_14)
|
target_compile_features(${PROJECT_NAME} INTERFACE cxx_std_14)
|
||||||
|
add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
|
||||||
|
|
||||||
# ##############################################################################
|
# ##############################################################################
|
||||||
# TESTS
|
# TESTS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue