mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 16:39:08 +08:00
614e7b491b
* [simonbrunel-qtpromise] add simonbrunel-qtpromise to vcpkg * [simonbrunel-qtpromise] use version rather than version-string * [simonbrunel-qtpromise] generate version info * [simonbrunel-qtpromise] remove unnecessary cmake settings * [simonbrunel-qtpromise] regenerate version info * use quotes in portfile Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> * [simonbrunel-qtpromise] regenerate version info * [simonbrunel-qtpromise] fix qt dependency in cmake config * [simonbrunel-qtpromise] define include directory in terms of CMAKE_CURRENT_LIST_DIR * [simonbrunel-qtpromise] add patch for installing header files * [simonbrunel-qtpromise] remove error flags * [simonbrunel-qtpromise] add hint for qt5 support * [simonbrunel-qtpromise] regenerate version info --------- Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>
18 lines
578 B
Diff
18 lines
578 B
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -21,6 +21,14 @@ add_library(qtpromise::qtpromise ALIAS qtpromise)
|
|
target_link_libraries(qtpromise INTERFACE Qt${QT_VERSION_MAJOR}::Core)
|
|
target_include_directories(qtpromise INTERFACE "${CMAKE_CURRENT_LIST_DIR}/include")
|
|
|
|
+if(QTPROMISE_HEADER_INSTALL_DESTINATION)
|
|
+ install(
|
|
+ DIRECTORY "include" "src"
|
|
+ DESTINATION "${QTPROMISE_HEADER_INSTALL_DESTINATION}"
|
|
+ CONFIGURATIONS "${QTPROMISE_HEADER_INSTALL_COMPONENTS}"
|
|
+ )
|
|
+endif()
|
|
+
|
|
add_definitions(
|
|
-DQT_DEPRECATED_WARNINGS
|
|
-DQT_NO_KEYWORDS
|