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-gobject-introspection/project/CMakeLists.txt | |
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-gobject-introspection/project/CMakeLists.txt')
| -rw-r--r-- | vcpkg/scripts/test_ports/vcpkg-ci-gobject-introspection/project/CMakeLists.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-gobject-introspection/project/CMakeLists.txt b/vcpkg/scripts/test_ports/vcpkg-ci-gobject-introspection/project/CMakeLists.txt new file mode 100644 index 0000000..24119e2 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-gobject-introspection/project/CMakeLists.txt @@ -0,0 +1,22 @@ +cmake_minimum_required(VERSION 3.30) +project(gobject-introspection-test C) + +option(RUN_TEST "Run the test program") + +set(CMAKE_SKIP_RPATH FALSE) + +find_package(PkgConfig REQUIRED) +pkg_check_modules(gobject-introspection_pc gobject-introspection-1.0 REQUIRED IMPORTED_TARGET) + +add_executable(main-pkgconfig main.c) +target_link_libraries(main-pkgconfig PRIVATE + PkgConfig::gobject-introspection_pc +) + +add_custom_target(run-test + COMMAND main-pkgconfig + COMMENT "Running the test program" +) +if(RUN_TEST) + set_target_properties(run-test PROPERTIES EXCLUDE_FROM_ALL 0) +endif() |