diff options
| author | myd7349 <myd7349@gmail.com> | 2019-09-30 23:51:44 +0800 |
|---|---|---|
| committer | Curtis J Bezault <curtbezault@gmail.com> | 2019-09-30 08:51:44 -0700 |
| commit | 281d107328a2d08304a0a0c100ae69d9f3656e2c (patch) | |
| tree | 6f78de31fcf251440015f7a7f0cf14622f999b1a /ports/mathc/CMakeLists.txt | |
| parent | 4279a792081355844c93f91068111a9e42aa45ab (diff) | |
| download | vcpkg-2019.09.tar.gz vcpkg-2019.09.zip | |
[mathc] Add new port (#8394)2019.09
Diffstat (limited to 'ports/mathc/CMakeLists.txt')
| -rw-r--r-- | ports/mathc/CMakeLists.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ports/mathc/CMakeLists.txt b/ports/mathc/CMakeLists.txt new file mode 100644 index 000000000..7c221bec1 --- /dev/null +++ b/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
+)
|
