mirror of
https://github.com/chylex/Nextcloud-Desktop.git
synced 2024-10-19 04:42:46 +02:00
fe706dc8f9
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
58 lines
1.3 KiB
CMake
58 lines
1.3 KiB
CMake
# - Try to find Neon
|
|
# Once done this will define
|
|
#
|
|
# NEON_FOUND - system has Neon
|
|
# NEON_INCLUDE_DIRS - the Neon include directory
|
|
# NEON_LIBRARIES - Link these to use Neon
|
|
# NEON_DEFINITIONS - Compiler switches required for using Neon
|
|
#
|
|
# Copyright (c) 2011-2013 Andreas Schneider <asn@cryptomilk.org>
|
|
#
|
|
# Redistribution and use is allowed according to the terms of the New
|
|
# BSD license.
|
|
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
|
#
|
|
|
|
|
|
if (UNIX)
|
|
find_package(PkgConfig)
|
|
if (PKG_CONFIG_FOUND)
|
|
pkg_check_modules(_NEON neon)
|
|
endif (PKG_CONFIG_FOUND)
|
|
endif (UNIX)
|
|
|
|
find_path(NEON_INCLUDE_DIR
|
|
NAMES
|
|
neon/ne_basic.h
|
|
PATHS
|
|
${_NEON_INCLUDEDIR}
|
|
)
|
|
|
|
find_library(NEON_LIBRARY
|
|
NAMES
|
|
neon
|
|
PATHS
|
|
${_NEON_LIBDIR}
|
|
)
|
|
|
|
set(NEON_INCLUDE_DIRS
|
|
${NEON_INCLUDE_DIR}
|
|
)
|
|
|
|
if (NEON_LIBRARY)
|
|
set(NEON_LIBRARIES
|
|
${NEON_LIBRARIES}
|
|
${NEON_LIBRARY}
|
|
)
|
|
endif (NEON_LIBRARY)
|
|
|
|
if (Neon_FIND_VERSION AND _NEON_VERSION)
|
|
set(Neon_VERSION _NEON_VERSION)
|
|
endif (Neon_FIND_VERSION AND _NEON_VERSION)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(Neon DEFAULT_MSG NEON_LIBRARIES NEON_INCLUDE_DIRS)
|
|
|
|
# show the NEON_INCLUDE_DIRS and NEON_LIBRARIES variables only in the advanced view
|
|
mark_as_advanced(NEON_INCLUDE_DIRS NEON_LIBRARIES)
|