mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 08:49:00 +08:00
047e8ef16e
* [libunifex] create a new port * [libunifex] update version/baseline * [libunifex] fix wrong support expression * update version SHA * [libunifex] more warning comments * [libunifex] use `unofficial::` namespace * [libunifex] allow warnings in build * simplify the patch file * Update ports/libunifex/vcpkg.json Co-authored-by: ras0219 <533828+ras0219@users.noreply.github.com> * [libunifex] update patch files * [libunifex] replace INCLUDEDIR to include Co-authored-by: ras0219 <533828+ras0219@users.noreply.github.com>
34 lines
928 B
Diff
34 lines
928 B
Diff
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
|
|
index 3f25517..3c34a54 100644
|
|
--- a/source/CMakeLists.txt
|
|
+++ b/source/CMakeLists.txt
|
|
@@ -67,10 +67,27 @@ configure_file(
|
|
target_include_directories(unifex
|
|
PUBLIC
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include/>
|
|
- "${PROJECT_BINARY_DIR}/include")
|
|
+ $<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include>
|
|
+ $<INSTALL_INTERFACE:include>)
|
|
|
|
target_compile_features(unifex PUBLIC cxx_std_17)
|
|
|
|
if(CXX_COROUTINES_HAVE_COROUTINES)
|
|
target_link_libraries(unifex PUBLIC std::coroutines)
|
|
endif()
|
|
+
|
|
+install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/unifex
|
|
+ DESTINATION include
|
|
+)
|
|
+install(FILES ${PROJECT_BINARY_DIR}/include/unifex/config.hpp
|
|
+ DESTINATION include/unifex
|
|
+)
|
|
+
|
|
+install(TARGETS unifex
|
|
+ EXPORT unifex-config
|
|
+ DESTINATION lib
|
|
+)
|
|
+install(EXPORT unifex-config
|
|
+ NAMESPACE unofficial::
|
|
+ DESTINATION lib/cmake/unifex
|
|
+)
|