aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth/project/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth/project/CMakeLists.txt')
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth/project/CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth/project/CMakeLists.txt b/vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth/project/CMakeLists.txt
new file mode 100644
index 0000000..d62d080
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-fluidsynth/project/CMakeLists.txt
@@ -0,0 +1,14 @@
+cmake_minimum_required(VERSION 3.30)
+project(fluidsynth-test LANGUAGES C CXX)
+
+find_package(FluidSynth CONFIG REQUIRED)
+
+add_executable(main main.c)
+target_link_libraries(main PRIVATE FluidSynth::libfluidsynth)
+
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(fluidsynth_pc fluidsynth REQUIRED IMPORTED_TARGET)
+
+add_executable(main-pkconfig main.c)
+target_link_libraries(main-pkconfig PRIVATE PkgConfig::fluidsynth_pc)
+set_target_properties(main-pkconfig PROPERTIES LINKER_LANGUAGE CXX)