vcpkg/ports/node-addon-api/unofficial-node-addon-api-config.cmake
Leonid Pospelov baa9d834e7
[node-api|node-addon-api] fix and update (#29599)
* node-api-config-fix

* port-ver

* upd

* hash

* newver

* add-ver

* .

* .

* respect vcpkg_build_type in config

* addver

* Update node-addon-api.json
2023-02-14 10:27:11 -08:00

12 lines
506 B
CMake

if(NOT TARGET unofficial::node-addon-api::node-addon-api)
include(CMakeFindDependencyMacro)
find_dependency(unofficial-node-api CONFIG)
add_library(unofficial::node-addon-api::node-addon-api IMPORTED INTERFACE)
target_link_libraries(unofficial::node-addon-api::node-addon-api INTERFACE unofficial::node-api::node-api)
set_target_properties(unofficial::node-addon-api::node-addon-api PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_LIST_DIR}/../../include/"
)
endif()