aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/test_ports/vcpkg-ci-plplot/project/CMakeLists.txt
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/scripts/test_ports/vcpkg-ci-plplot/project/CMakeLists.txt
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-plplot/project/CMakeLists.txt')
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-plplot/project/CMakeLists.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-plplot/project/CMakeLists.txt b/vcpkg/scripts/test_ports/vcpkg-ci-plplot/project/CMakeLists.txt
new file mode 100644
index 0000000..e77cc8f
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-plplot/project/CMakeLists.txt
@@ -0,0 +1,18 @@
+cmake_minimum_required(VERSION 3.30)
+project(plplot-test C CXX)
+
+find_package(plplot CONFIG REQUIRED)
+
+add_executable(main main.c)
+target_link_libraries(main PRIVATE
+ PLPLOT::plplot
+)
+target_compile_definitions(main PRIVATE USING_CMAKE)
+
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(plplot_pc plplot REQUIRED IMPORTED_TARGET)
+
+add_executable(main-pkconfig main.c)
+target_link_libraries(main-pkconfig PRIVATE
+ PkgConfig::plplot_pc
+)