diff options
Diffstat (limited to 'ports/boost')
| -rw-r--r-- | ports/boost/portfile.cmake | 2 | ||||
| -rw-r--r-- | ports/boost/usage | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ports/boost/portfile.cmake b/ports/boost/portfile.cmake index c15f7c312..fa264fa51 100644 --- a/ports/boost/portfile.cmake +++ b/ports/boost/portfile.cmake @@ -342,3 +342,5 @@ move_to_manual_link(boost_test_exec_monitor) move_to_manual_link(boost_prg_exec_monitor) vcpkg_copy_pdbs() + +file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) diff --git a/ports/boost/usage b/ports/boost/usage new file mode 100644 index 000000000..28d429010 --- /dev/null +++ b/ports/boost/usage @@ -0,0 +1,5 @@ +The package boost is compatible with built-in CMake targets:
+
+ find_package(Boost REQUIRED [COMPONENTS <libs>...])
+ target_link_libraries(main PRIVATE ${Boost_LIBRARIES})
+ target_include_directories(main PRIVATE ${Boost_INCLUDE_DIRS})
|
