aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/nonius/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/nonius/CMakeLists.txt
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/nonius/CMakeLists.txt')
-rw-r--r--vcpkg/ports/nonius/CMakeLists.txt30
1 files changed, 30 insertions, 0 deletions
diff --git a/vcpkg/ports/nonius/CMakeLists.txt b/vcpkg/ports/nonius/CMakeLists.txt
new file mode 100644
index 0000000..38f213d
--- /dev/null
+++ b/vcpkg/ports/nonius/CMakeLists.txt
@@ -0,0 +1,30 @@
+cmake_minimum_required(VERSION 3.9)
+cmake_policy(VERSION ${CMAKE_VERSION}) # use default policies of current cmake version
+
+project(nonius)
+
+add_library(nonius INTERFACE)
+target_include_directories(nonius INTERFACE
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
+ $<INSTALL_INTERFACE:include>
+)
+
+if(NOT DISABLE_INSTALL_HEADERS)
+ install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/
+ DESTINATION include
+ )
+endif()
+
+install(TARGETS nonius
+ EXPORT noniusExport
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib
+)
+
+install(
+ EXPORT noniusExport
+ FILE noniusConfig.cmake
+ NAMESPACE Nonius::
+ DESTINATION share/nonius
+)