diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/scripts/test_ports/vcpkg-ci-gz-common/project/CMakeLists.txt | |
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-gz-common/project/CMakeLists.txt')
| -rw-r--r-- | vcpkg/scripts/test_ports/vcpkg-ci-gz-common/project/CMakeLists.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-gz-common/project/CMakeLists.txt b/vcpkg/scripts/test_ports/vcpkg-ci-gz-common/project/CMakeLists.txt new file mode 100644 index 0000000..a7dfd85 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-gz-common/project/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.30) +project(gz-common-test) + +find_package(gz-common6 QUIET REQUIRED COMPONENTS av) + +add_executable(main main.cpp) +target_link_libraries(main PRIVATE gz-common6::gz-common6-av) + +find_package(PkgConfig REQUIRED) +pkg_check_modules(gz-common_pc gz-common6-av REQUIRED IMPORTED_TARGET) + +add_executable(main-pkconfig main.cpp) +target_link_libraries(main-pkconfig PRIVATE PkgConfig::gz-common_pc) +if(MSVC) + target_compile_features(main-pkconfig PRIVATE cxx_std_17) +endif() |