Open
Description
I try to use vcpkg + cmake to import osgQt to my project.
To Reproduce
First use vcpkg to install osgQt
vcpkg install osgQt:x64-windows
then wirte the following information into CMakeLists.txt
find_package(OpenSceneGraph REQUIRED
COMPONENTS osg osgDB osgUtil osgViewer osgQt
)
include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS})
add_executable(myproject ${source})
target_link_libraries(myproject PRIVATE ${OPENSCENEGRAPH_LIBRARIES})
Failure logs
set VCPKG_ROOT:
set VCPKG_TARGET_TRIPLET: x64-windows
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19042.
-- Build directory: D:/myproject/build
-- Build type : Release
-- Could NOT find osgQt (missing: OSGQT_LIBRARY)
CMake Error at D:/Program/CMake/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find OpenSceneGraph (missing: OSGQT_FOUND) (found version
"3.6.5")
Call Stack (most recent call first):
D:/Program/CMake/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
D:/Program/CMake/share/cmake-3.22/Modules/FindOpenSceneGraph.cmake:226 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
D:/package/vcpkg/scripts/buildsystems/vcpkg.cmake:824 (_find_package)
src/CMakeLists.txt:3 (find_package)
-- Configuring incomplete, errors occurred!
so, is there any way to import osgQt into the project via vcpkg + cmake?
Metadata
Metadata
Assignees
Labels
No labels