mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 05:01:37 +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>
20 lines
490 B
CMake
20 lines
490 B
CMake
|
|
set(@PORT@_VERSION "@VERSION@")
|
|
|
|
if(TARGET unofficial-@PORT@)
|
|
set(unofficial-@PORT@_FOUND TRUE)
|
|
return()
|
|
endif()
|
|
|
|
include(CMakeFindDependencyMacro)
|
|
|
|
find_dependency(Qt@USE_QT_VERSION@ REQUIRED COMPONENTS Core)
|
|
|
|
add_library(unofficial-@PORT@ INTERFACE)
|
|
|
|
target_link_libraries(unofficial-@PORT@ INTERFACE Qt::Core)
|
|
target_include_directories(unofficial-@PORT@ INTERFACE "${CMAKE_CURRENT_LIST_DIR}/../../include/@PORT@/include")
|
|
|
|
set(unofficial-@PORT@_FOUND TRUE)
|
|
|