mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-11 17:19:07 +08:00
31 lines
787 B
CMake
31 lines
787 B
CMake
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
|
|
)
|