aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/tgc/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/ports/tgc/CMakeLists.txt
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/tgc/CMakeLists.txt')
-rw-r--r--vcpkg/ports/tgc/CMakeLists.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/vcpkg/ports/tgc/CMakeLists.txt b/vcpkg/ports/tgc/CMakeLists.txt
new file mode 100644
index 0000000..20f5f0a
--- /dev/null
+++ b/vcpkg/ports/tgc/CMakeLists.txt
@@ -0,0 +1,25 @@
+cmake_minimum_required(VERSION 3.14)
+
+project(tgc LANGUAGES C)
+
+include(GNUInstallDirs)
+
+add_library(tgc tgc.c)
+
+target_include_directories(
+ tgc
+ PUBLIC
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
+)
+
+set_target_properties(tgc PROPERTIES PUBLIC_HEADER tgc.h)
+
+install(TARGETS tgc EXPORT unofficial-tgc-config)
+
+install(
+ EXPORT unofficial-tgc-config
+ NAMESPACE unofficial::tgc::
+ DESTINATION share/unofficial-tgc
+ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
+)