16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 01:19:18 +02:00

add MacOS ARM64 to CI builds

This commit is contained in:
milek7
2021-01-18 23:04:00 +01:00
parent bba6c8410c
commit 5fcd108b3d
6 changed files with 162 additions and 124 deletions

View File

@@ -0,0 +1,30 @@
# - Try to find libsndfile
# Use pkg-config to get hints about paths
find_package(PkgConfig QUIET)
if(PKG_CONFIG_FOUND)
pkg_check_modules(LIBSNDFILE_PKGCONF sndfile)
endif(PKG_CONFIG_FOUND)
# Include dir
find_path(LIBSNDFILE_INCLUDE_DIR
NAMES sndfile.h
PATHS ${LIBSNDFILE_PKGCONF_INCLUDE_DIRS}
)
# Library
find_library(LIBSNDFILE_LIBRARY
NAMES sndfile libsndfile-1
PATHS ${LIBSNDFILE_PKGCONF_LIBRARY_DIRS}
)
find_package(PackageHandleStandardArgs)
find_package_handle_standard_args(SndFile DEFAULT_MSG LIBSNDFILE_LIBRARY LIBSNDFILE_INCLUDE_DIR)
if(SNDFILE_FOUND)
add_library(SndFile::sndfile INTERFACE IMPORTED GLOBAL)
set_target_properties(SndFile::sndfile PROPERTIES
INTERFACE_LINK_LIBRARIES ${LIBSNDFILE_LIBRARY}
INTERFACE_INCLUDE_DIRECTORIES ${LIBSNDFILE_INCLUDE_DIR}
)
endif(SNDFILE_FOUND)