diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/cello/CMakeLists.txt | |
Diffstat (limited to 'vcpkg/ports/cello/CMakeLists.txt')
| -rw-r--r-- | vcpkg/ports/cello/CMakeLists.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/vcpkg/ports/cello/CMakeLists.txt b/vcpkg/ports/cello/CMakeLists.txt new file mode 100644 index 0000000..333323c --- /dev/null +++ b/vcpkg/ports/cello/CMakeLists.txt @@ -0,0 +1,30 @@ +cmake_minimum_required(VERSION 3.14)
+
+project(cello LANGUAGES C)
+
+include(GNUInstallDirs)
+
+file(GLOB cello_sources src/*.c)
+add_library(cello ${cello_sources})
+
+target_include_directories(
+ cello
+ PUBLIC
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
+)
+
+set_target_properties(cello PROPERTIES PUBLIC_HEADER include/Cello.h)
+
+if(ANDROID AND ANDROID_NATIVE_API_LEVEL LESS "33")
+ target_compile_definitions(cello PRIVATE CELLO_NSTRACE)
+endif()
+
+install(TARGETS cello EXPORT unofficial-cello-config)
+
+install(
+ EXPORT unofficial-cello-config
+ NAMESPACE unofficial::cello::
+ DESTINATION share/unofficial-cello
+ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
+)
|