mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 13:59:06 +08:00
12 lines
530 B
CMake
12 lines
530 B
CMake
if(NOT TARGET unofficial::node-addon-api::node-addon-api)
|
|
include(CMakeFindDependencyMacro)
|
|
find_dependency(unofficial-node-api-headers 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-headers::node-api-headers)
|
|
|
|
set_target_properties(unofficial::node-addon-api::node-addon-api PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_LIST_DIR}/../../include/"
|
|
)
|
|
endif()
|