aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/mathc/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/mathc/CMakeLists.txt')
-rw-r--r--vcpkg/ports/mathc/CMakeLists.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/vcpkg/ports/mathc/CMakeLists.txt b/vcpkg/ports/mathc/CMakeLists.txt
new file mode 100644
index 0000000..7c221be
--- /dev/null
+++ b/vcpkg/ports/mathc/CMakeLists.txt
@@ -0,0 +1,24 @@
+cmake_minimum_required(VERSION 3.14)
+
+project(mathc LANGUAGES C)
+
+include(GNUInstallDirs)
+
+add_library(mathc mathc.c)
+
+target_include_directories(
+ mathc
+ PUBLIC
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
+)
+
+set_target_properties(mathc PROPERTIES PUBLIC_HEADER mathc.h)
+
+install(TARGETS mathc EXPORT unofficial-mathc-config)
+
+install(
+ EXPORT unofficial-mathc-config
+ NAMESPACE unofficial::mathc::
+ DESTINATION share/unofficial-mathc
+ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
+)