Allow linking against system libraries for almost everything (#1790)
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
# From the CMake wiki, get the DirectX version needed.
|
||||
# This assumes default directories.
|
||||
# From the CMake wiki, get the DirectX version needed. This assumes default
|
||||
# directories.
|
||||
|
||||
# Once loaded, the following are defined:
|
||||
# DIRECTX_FOUND
|
||||
# DIRECTX_INCLUDE_DIR
|
||||
# DIRECTX_LIBRARIES
|
||||
# Once loaded, the following are defined: DIRECTX_FOUND DIRECTX_INCLUDE_DIR
|
||||
# DIRECTX_LIBRARIES
|
||||
|
||||
if(NOT WIN32)
|
||||
return()
|
||||
@@ -15,29 +13,28 @@ if(NOT EXISTS "$ENV{DXSDK_DIR}")
|
||||
endif()
|
||||
|
||||
set(DIRECTX_INCLUDE_SEARCH_PATHS
|
||||
# TODO: Do not be limited to x86 in the future.
|
||||
"$ENV{DXSDK_DIR}/Include"
|
||||
)
|
||||
# TODO: Do not be limited to x86 in the future.
|
||||
"$ENV{DXSDK_DIR}/Include")
|
||||
|
||||
set(DIRECTX_LIBRARY_SEARCH_PATHS
|
||||
# TODO: Do not be limited to x86 in the future.
|
||||
"$ENV{DXSDK_DIR}/Lib/x86"
|
||||
)
|
||||
# TODO: Do not be limited to x86 in the future.
|
||||
"$ENV{DXSDK_DIR}/Lib/x86")
|
||||
|
||||
find_path(DIRECTX_INCLUDE_DIR
|
||||
NAMES "DxErr.h"
|
||||
PATHS ${DIRECTX_INCLUDE_SEARCH_PATHS}
|
||||
DOC "Where can DxErr.h be found?"
|
||||
)
|
||||
NAMES "DxErr.h"
|
||||
PATHS ${DIRECTX_INCLUDE_SEARCH_PATHS}
|
||||
DOC "Where can DxErr.h be found?")
|
||||
|
||||
find_library(DIRECTX_LIBRARIES
|
||||
NAMES "DxErr.lib" "d3dx9.lib"
|
||||
PATHS ${DIRECTX_LIBRARY_SEARCH_PATHS}
|
||||
DOC "Where can the DX libraries be found?"
|
||||
)
|
||||
NAMES "DxErr.lib" "d3dx9.lib"
|
||||
PATHS ${DIRECTX_LIBRARY_SEARCH_PATHS}
|
||||
DOC "Where can the DX libraries be found?")
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(DIRECTX DEFAULT_MSG DIRECTX_INCLUDE_DIR DIRECTX_LIBRARIES)
|
||||
find_package_handle_standard_args(DIRECTX
|
||||
DEFAULT_MSG
|
||||
DIRECTX_INCLUDE_DIR
|
||||
DIRECTX_LIBRARIES)
|
||||
|
||||
if(DIRECTX_FOUND)
|
||||
mark_as_advanced(DIRECTX_INCLUDE_DIR DIRECTX_LIBRARIES)
|
||||
|
||||
@@ -1,24 +1,18 @@
|
||||
# Stick to traditional approaches here. The following are defined.
|
||||
|
||||
# DL_FOUND - The system has the dl library.
|
||||
# DL_INCLUDE_DIR - The dl include directory.
|
||||
# DL_LIBRARIES - The library file to link to.
|
||||
# DL_FOUND - The system has the dl library. DL_INCLUDE_DIR - The dl include
|
||||
# directory. DL_LIBRARIES - The library file to link to.
|
||||
|
||||
if (DL_INCLUDE_DIR AND DL_LIBRARIES)
|
||||
if(DL_INCLUDE_DIR AND DL_LIBRARIES)
|
||||
# Already in cache, so don't repeat the finding procedures.
|
||||
set(DL_FIND_QUIETLY TRUE)
|
||||
endif()
|
||||
|
||||
find_path(DL_INCLUDE_DIR dlfcn.h
|
||||
PATHS /usr/local/include /usr/include
|
||||
)
|
||||
find_path(DL_INCLUDE_DIR dlfcn.h PATHS /usr/local/include /usr/include)
|
||||
|
||||
find_library(DL_LIBRARIES dl
|
||||
PATHS /usr/local/lib /usr/lib /lib
|
||||
)
|
||||
find_library(DL_LIBRARIES dl PATHS /usr/local/lib /usr/lib /lib)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(DL DEFAULT_MSG DL_LIBRARIES DL_INCLUDE_DIR)
|
||||
|
||||
mark_as_advanced(DL_INCLUDE_DIR DL_LIBRARIES)
|
||||
|
||||
|
||||
@@ -1,148 +1,141 @@
|
||||
# This was copied from the robotology/ycm project.
|
||||
|
||||
#.rst:
|
||||
# FindFFMPEG
|
||||
# .rst: FindFFMPEG
|
||||
# ----------
|
||||
#
|
||||
# Find the native FFMPEG includes and library
|
||||
#
|
||||
# This module defines::
|
||||
#
|
||||
# FFMPEG_INCLUDE_DIR, where to find avcodec.h, avformat.h ...
|
||||
# FFMPEG_LIBRARIES, the libraries to link against to use FFMPEG.
|
||||
# FFMPEG_FOUND, If false, do not try to use FFMPEG.
|
||||
# FFMPEG_INCLUDE_DIR, where to find avcodec.h, avformat.h ... FFMPEG_LIBRARIES,
|
||||
# the libraries to link against to use FFMPEG. FFMPEG_FOUND, If false, do not
|
||||
# try to use FFMPEG.
|
||||
#
|
||||
# also defined, but not for general use are::
|
||||
#
|
||||
# FFMPEG_avformat_LIBRARY, where to find the FFMPEG avformat library.
|
||||
# FFMPEG_avcodec_LIBRARY, where to find the FFMPEG avcodec library.
|
||||
# FFMPEG_avformat_LIBRARY, where to find the FFMPEG avformat library.
|
||||
# FFMPEG_avcodec_LIBRARY, where to find the FFMPEG avcodec library.
|
||||
#
|
||||
# This is useful to do it this way so that we can always add more libraries
|
||||
# if needed to ``FFMPEG_LIBRARIES`` if ffmpeg ever changes...
|
||||
# This is useful to do it this way so that we can always add more libraries if
|
||||
# needed to ``FFMPEG_LIBRARIES`` if ffmpeg ever changes...
|
||||
|
||||
#=============================================================================
|
||||
# =============================================================================
|
||||
# Copyright: 1993-2008 Ken Martin, Will Schroeder, Bill Lorensen
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
# Distributed under the OSI-approved BSD License (the "License"); see
|
||||
# accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of YCM, substitute the full
|
||||
# License text for the above reference.)
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the implied
|
||||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# License for more information.
|
||||
# =============================================================================
|
||||
# (To distribute this file outside of YCM, substitute the full License text for
|
||||
# the above reference.)
|
||||
|
||||
# Originally from VTK project
|
||||
|
||||
find_path(FFMPEG_INCLUDE_DIR
|
||||
libavformat/avformat.h
|
||||
$ENV{FFMPEG_DIR}
|
||||
$ENV{FFMPEG_DIR}/ffmpeg
|
||||
$ENV{FFMPEG_DIR}/include/ffmpeg
|
||||
/usr/local/include/ffmpeg
|
||||
/usr/include/ffmpeg
|
||||
/usr/include/
|
||||
/usr/local/include/)
|
||||
|
||||
find_path(FFMPEG_INCLUDE_DIR libavformat/avformat.h
|
||||
$ENV{FFMPEG_DIR}
|
||||
$ENV{FFMPEG_DIR}/ffmpeg
|
||||
$ENV{FFMPEG_DIR}/include/ffmpeg
|
||||
/usr/local/include/ffmpeg
|
||||
/usr/include/ffmpeg
|
||||
/usr/include/
|
||||
/usr/local/include/
|
||||
)
|
||||
find_library(FFMPEG_avformat_LIBRARY
|
||||
avformat
|
||||
$ENV{FFMPEG_DIR}
|
||||
$ENV{FFMPEG_DIR}/lib
|
||||
$ENV{FFMPEG_DIR}/libavformat
|
||||
/usr/local/lib
|
||||
/usr/lib)
|
||||
|
||||
find_library(FFMPEG_avformat_LIBRARY avformat
|
||||
$ENV{FFMPEG_DIR}
|
||||
$ENV{FFMPEG_DIR}/lib
|
||||
$ENV{FFMPEG_DIR}/libavformat
|
||||
/usr/local/lib
|
||||
/usr/lib
|
||||
)
|
||||
find_library(FFMPEG_avcodec_LIBRARY
|
||||
avcodec
|
||||
$ENV{FFMPEG_DIR}
|
||||
$ENV{FFMPEG_DIR}/lib
|
||||
$ENV{FFMPEG_DIR}/libavcodec
|
||||
/usr/local/lib
|
||||
/usr/lib)
|
||||
|
||||
find_library(FFMPEG_avcodec_LIBRARY avcodec
|
||||
$ENV{FFMPEG_DIR}
|
||||
$ENV{FFMPEG_DIR}/lib
|
||||
$ENV{FFMPEG_DIR}/libavcodec
|
||||
/usr/local/lib
|
||||
/usr/lib
|
||||
)
|
||||
|
||||
find_library(FFMPEG_avutil_LIBRARY avutil
|
||||
$ENV{FFMPEG_DIR}
|
||||
$ENV{FFMPEG_DIR}/lib
|
||||
$ENV{FFMPEG_DIR}/libavutil
|
||||
/usr/local/lib
|
||||
/usr/lib
|
||||
)
|
||||
find_library(FFMPEG_avutil_LIBRARY
|
||||
avutil
|
||||
$ENV{FFMPEG_DIR}
|
||||
$ENV{FFMPEG_DIR}/lib
|
||||
$ENV{FFMPEG_DIR}/libavutil
|
||||
/usr/local/lib
|
||||
/usr/lib)
|
||||
|
||||
if(NOT DISABLE_SWSCALE)
|
||||
find_library(FFMPEG_swscale_LIBRARY swscale
|
||||
$ENV{FFMPEG_DIR}
|
||||
$ENV{FFMPEG_DIR}/lib
|
||||
$ENV{FFMPEG_DIR}/libswscale
|
||||
/usr/local/lib
|
||||
/usr/lib
|
||||
)
|
||||
find_library(FFMPEG_swscale_LIBRARY
|
||||
swscale
|
||||
$ENV{FFMPEG_DIR}
|
||||
$ENV{FFMPEG_DIR}/lib
|
||||
$ENV{FFMPEG_DIR}/libswscale
|
||||
/usr/local/lib
|
||||
/usr/lib)
|
||||
endif(NOT DISABLE_SWSCALE)
|
||||
|
||||
find_library(FFMPEG_avdevice_LIBRARY avdevice
|
||||
$ENV{FFMPEG_DIR}
|
||||
$ENV{FFMPEG_DIR}/lib
|
||||
$ENV{FFMPEG_DIR}/libavdevice
|
||||
/usr/local/lib
|
||||
/usr/lib
|
||||
)
|
||||
|
||||
find_library(_FFMPEG_z_LIBRARY_ z
|
||||
$ENV{FFMPEG_DIR}
|
||||
$ENV{FFMPEG_DIR}/lib
|
||||
/usr/local/lib
|
||||
/usr/lib
|
||||
)
|
||||
|
||||
find_library(FFMPEG_avdevice_LIBRARY
|
||||
avdevice
|
||||
$ENV{FFMPEG_DIR}
|
||||
$ENV{FFMPEG_DIR}/lib
|
||||
$ENV{FFMPEG_DIR}/libavdevice
|
||||
/usr/local/lib
|
||||
/usr/lib)
|
||||
|
||||
find_library(_FFMPEG_z_LIBRARY_
|
||||
z
|
||||
$ENV{FFMPEG_DIR}
|
||||
$ENV{FFMPEG_DIR}/lib
|
||||
/usr/local/lib
|
||||
/usr/lib)
|
||||
|
||||
if(FFMPEG_INCLUDE_DIR)
|
||||
if(FFMPEG_avformat_LIBRARY)
|
||||
if(FFMPEG_avcodec_LIBRARY)
|
||||
if(FFMPEG_avutil_LIBRARY)
|
||||
set(FFMPEG_FOUND "YES")
|
||||
set(FFMPEG_LIBRARIES ${FFMPEG_avformat_LIBRARY}
|
||||
${FFMPEG_avcodec_LIBRARY}
|
||||
${FFMPEG_avutil_LIBRARY}
|
||||
)
|
||||
set(FFMPEG_LIBRARIES
|
||||
${FFMPEG_avformat_LIBRARY}
|
||||
${FFMPEG_avcodec_LIBRARY}
|
||||
${FFMPEG_avutil_LIBRARY})
|
||||
if(FFMPEG_swscale_LIBRARY)
|
||||
set(FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES}
|
||||
${FFMPEG_swscale_LIBRARY}
|
||||
)
|
||||
set(FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} ${FFMPEG_swscale_LIBRARY})
|
||||
endif()
|
||||
if(FFMPEG_avdevice_LIBRARY)
|
||||
set(FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES}
|
||||
${FFMPEG_avdevice_LIBRARY}
|
||||
)
|
||||
set(FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} ${FFMPEG_avdevice_LIBRARY})
|
||||
endif()
|
||||
if(_FFMPEG_z_LIBRARY_)
|
||||
set( FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES}
|
||||
${_FFMPEG_z_LIBRARY_}
|
||||
)
|
||||
set(FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} ${_FFMPEG_z_LIBRARY_})
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
mark_as_advanced(
|
||||
FFMPEG_INCLUDE_DIR
|
||||
FFMPEG_INCLUDE_DIR1
|
||||
FFMPEG_INCLUDE_DIR2
|
||||
FFMPEG_INCLUDE_DIR3
|
||||
FFMPEG_INCLUDE_DIR4
|
||||
FFMPEG_INCLUDE_DIR5
|
||||
FFMPEG_avformat_LIBRARY
|
||||
FFMPEG_avcodec_LIBRARY
|
||||
FFMPEG_avutil_LIBRARY
|
||||
FFMPEG_swscale_LIBRARY
|
||||
FFMPEG_avdevice_LIBRARY
|
||||
_FFMPEG_z_LIBRARY_
|
||||
)
|
||||
mark_as_advanced(FFMPEG_INCLUDE_DIR
|
||||
FFMPEG_INCLUDE_DIR1
|
||||
FFMPEG_INCLUDE_DIR2
|
||||
FFMPEG_INCLUDE_DIR3
|
||||
FFMPEG_INCLUDE_DIR4
|
||||
FFMPEG_INCLUDE_DIR5
|
||||
FFMPEG_avformat_LIBRARY
|
||||
FFMPEG_avcodec_LIBRARY
|
||||
FFMPEG_avutil_LIBRARY
|
||||
FFMPEG_swscale_LIBRARY
|
||||
FFMPEG_avdevice_LIBRARY
|
||||
_FFMPEG_z_LIBRARY_)
|
||||
|
||||
# Set package properties if FeatureSummary was included
|
||||
if(COMMAND set_package_properties)
|
||||
set_package_properties(FFMPEG PROPERTIES DESCRIPTION "A complete, cross-platform solution to record, convert and stream audio and video")
|
||||
set_package_properties(
|
||||
FFMPEG
|
||||
PROPERTIES
|
||||
DESCRIPTION
|
||||
"A complete, cross-platform solution to record, convert and stream audio and video"
|
||||
)
|
||||
set_package_properties(FFMPEG PROPERTIES URL "http://ffmpeg.org/")
|
||||
endif()
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# Borrowed from https://github.com/onyx-intl/cmake_modules/blob/master/FindIconv.cmake
|
||||
# Borrowed from https://github.com/onyx-
|
||||
# intl/cmake_modules/blob/master/FindIconv.cmake
|
||||
|
||||
# Find Iconv on the system. When this is done, the following are defined:
|
||||
|
||||
# ICONV_FOUND - The system has Iconv.
|
||||
# ICONV_INCLUDE_DIR - The Iconv include directory.
|
||||
# ICONV_LIBRARIES - The library file to link to.
|
||||
# ICONV_FOUND - The system has Iconv. ICONV_INCLUDE_DIR - The Iconv include
|
||||
# directory. ICONV_LIBRARIES - The library file to link to.
|
||||
|
||||
if (ICONV_INCLUDE_DIR AND ICONV_LIBRARIES)
|
||||
if(ICONV_INCLUDE_DIR AND ICONV_LIBRARIES)
|
||||
# Already in cache, so don't repeat the finding procedures.
|
||||
set(ICONV_FIND_QUIETLY TRUE)
|
||||
endif()
|
||||
@@ -16,7 +16,9 @@ set(ICONV_NAMES ${ICONV_NAMES} iconv libiconv libiconv-2 c)
|
||||
find_library(ICONV_LIBRARIES NAMES ${ICONV_NAMES})
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(ICONV DEFAULT_MSG ICONV_LIBRARIES ICONV_INCLUDE_DIR)
|
||||
find_package_handle_standard_args(ICONV
|
||||
DEFAULT_MSG
|
||||
ICONV_LIBRARIES
|
||||
ICONV_INCLUDE_DIR)
|
||||
|
||||
mark_as_advanced(ICONV_INCLUDE_DIR ICONV_LIBRARIES)
|
||||
|
||||
|
||||
@@ -1,75 +1,64 @@
|
||||
# This was borrowed from the gnuradio repository.
|
||||
|
||||
# - Try to find jack-2.6
|
||||
# Once done this will define
|
||||
# * Try to find jack-2.6 Once done this will define
|
||||
#
|
||||
# JACK_FOUND - system has jack
|
||||
# JACK_INCLUDE_DIRS - the jack include directory
|
||||
# JACK_LIBRARIES - Link these to use jack
|
||||
# JACK_DEFINITIONS - Compiler switches required for using jack
|
||||
# JACK_FOUND - system has jack JACK_INCLUDE_DIRS - the jack include directory
|
||||
# JACK_LIBRARIES - Link these to use jack JACK_DEFINITIONS - Compiler switches
|
||||
# required for using jack
|
||||
#
|
||||
# Copyright (c) 2008 Andreas Schneider <[email protected]>
|
||||
# Modified for other libraries by Lasse Kärkkäinen <tronic>
|
||||
# Copyright (c) 2008 Andreas Schneider <[email protected]> Modified for other
|
||||
# libraries by Lasse Kärkkäinen <tronic>
|
||||
#
|
||||
# Redistribution and use is allowed according to the terms of the New
|
||||
# BSD license.
|
||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||
# Redistribution and use is allowed according to the terms of the New BSD
|
||||
# license. For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||
#
|
||||
if (JACK_LIBRARIES AND JACK_INCLUDE_DIRS)
|
||||
if(JACK_LIBRARIES AND JACK_INCLUDE_DIRS)
|
||||
# in cache already
|
||||
set(JACK_FOUND TRUE)
|
||||
else (JACK_LIBRARIES AND JACK_INCLUDE_DIRS)
|
||||
# use pkg-config to get the directories and then use these values
|
||||
# in the FIND_PATH() and FIND_LIBRARY() calls
|
||||
if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)
|
||||
else(JACK_LIBRARIES AND JACK_INCLUDE_DIRS)
|
||||
# use pkg-config to get the directories and then use these values in the
|
||||
# FIND_PATH() and FIND_LIBRARY() calls
|
||||
if(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)
|
||||
include(UsePkgConfig)
|
||||
pkgconfig(jack _JACK_INCLUDEDIR _JACK_LIBDIR _JACK_LDFLAGS _JACK_CFLAGS)
|
||||
else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)
|
||||
else(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)
|
||||
find_package(PkgConfig)
|
||||
if (PKG_CONFIG_FOUND)
|
||||
if(PKG_CONFIG_FOUND)
|
||||
pkg_check_modules(_JACK jack)
|
||||
endif (PKG_CONFIG_FOUND)
|
||||
endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)
|
||||
endif(PKG_CONFIG_FOUND)
|
||||
endif(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)
|
||||
find_path(JACK_INCLUDE_DIR
|
||||
NAMES
|
||||
jack/jack.h
|
||||
PATHS
|
||||
${_JACK_INCLUDEDIR}
|
||||
/usr/include
|
||||
/usr/local/include
|
||||
/opt/local/include
|
||||
/sw/include
|
||||
)
|
||||
NAMES jack/jack.h
|
||||
PATHS ${_JACK_INCLUDEDIR}
|
||||
/usr/include
|
||||
/usr/local/include
|
||||
/opt/local/include
|
||||
/sw/include)
|
||||
|
||||
find_library(JACK_LIBRARY
|
||||
NAMES
|
||||
jack
|
||||
PATHS
|
||||
${_JACK_LIBDIR}
|
||||
/usr/lib
|
||||
/usr/local/lib
|
||||
/opt/local/lib
|
||||
/sw/lib
|
||||
)
|
||||
NAMES jack
|
||||
PATHS ${_JACK_LIBDIR}
|
||||
/usr/lib
|
||||
/usr/local/lib
|
||||
/opt/local/lib
|
||||
/sw/lib)
|
||||
|
||||
if (JACK_LIBRARY AND JACK_INCLUDE_DIR)
|
||||
if(JACK_LIBRARY AND JACK_INCLUDE_DIR)
|
||||
set(JACK_FOUND TRUE)
|
||||
|
||||
set(JACK_INCLUDE_DIRS
|
||||
${JACK_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
set(JACK_LIBRARIES
|
||||
${JACK_LIBRARIES}
|
||||
${JACK_LIBRARY}
|
||||
)
|
||||
|
||||
endif (JACK_LIBRARY AND JACK_INCLUDE_DIR)
|
||||
set(JACK_INCLUDE_DIRS ${JACK_INCLUDE_DIR})
|
||||
|
||||
set(JACK_LIBRARIES ${JACK_LIBRARIES} ${JACK_LIBRARY})
|
||||
|
||||
endif(JACK_LIBRARY AND JACK_INCLUDE_DIR)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(JACK DEFAULT_MSG
|
||||
JACK_INCLUDE_DIRS JACK_LIBRARIES)
|
||||
find_package_handle_standard_args(JACK
|
||||
DEFAULT_MSG
|
||||
JACK_INCLUDE_DIRS
|
||||
JACK_LIBRARIES)
|
||||
|
||||
# show the JACK_INCLUDE_DIRS and JACK_LIBRARIES variables only in the advanced view
|
||||
# show the JACK_INCLUDE_DIRS and JACK_LIBRARIES variables only in the advanced
|
||||
# view
|
||||
mark_as_advanced(JACK_INCLUDE_DIRS JACK_LIBRARIES)
|
||||
endif (JACK_LIBRARIES AND JACK_INCLUDE_DIRS)
|
||||
endif(JACK_LIBRARIES AND JACK_INCLUDE_DIRS)
|
||||
|
||||
@@ -3,7 +3,9 @@ find_path(LIBMAD_INCLUDE_DIR mad.h)
|
||||
find_library(LIBMAD_LIBRARY mad)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(LIBMAD DEFAULT_MSG LIBMAD_LIBRARY LIBMAD_INCLUDE_DIR)
|
||||
find_package_handle_standard_args(LIBMAD
|
||||
DEFAULT_MSG
|
||||
LIBMAD_LIBRARY
|
||||
LIBMAD_INCLUDE_DIR)
|
||||
|
||||
mark_as_advanced(LIBMAD_LIBRARY LIBMAD_INCLUDE_DIR)
|
||||
|
||||
|
||||
+13
-18
@@ -1,24 +1,19 @@
|
||||
# Copied from marsyas, which is also copied from fqterm.
|
||||
# Further modifications are done.
|
||||
# Copied from marsyas, which is also copied from fqterm. Further modifications
|
||||
# are done.
|
||||
|
||||
IF(UNIX)
|
||||
IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
SET(OSS_HDR_NAME "linux/soundcard.h")
|
||||
ELSE(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
IF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||
SET(OSS_HDR_NAME "sys/soundcard.h")
|
||||
ENDIF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||
ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
ENDIF(UNIX)
|
||||
if(UNIX)
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
set(OSS_HDR_NAME "linux/soundcard.h")
|
||||
else(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||
set(OSS_HDR_NAME "sys/soundcard.h")
|
||||
endif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||
endif(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
endif(UNIX)
|
||||
|
||||
FIND_PATH(OSS_INCLUDE_DIR "${OSS_HDR_NAME}"
|
||||
"/usr/include" "/usr/local/include"
|
||||
)
|
||||
find_path(OSS_INCLUDE_DIR "${OSS_HDR_NAME}" "/usr/include" "/usr/local/include")
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(OSS DEFAULT_MSG OSS_INCLUDE_DIR)
|
||||
|
||||
MARK_AS_ADVANCED (
|
||||
OSS_FOUND
|
||||
OSS_INCLUDE_DIR
|
||||
)
|
||||
mark_as_advanced(OSS_FOUND OSS_INCLUDE_DIR)
|
||||
|
||||
@@ -1,17 +1,15 @@
|
||||
# Borrowed from code.openhub.net
|
||||
|
||||
# Base Io build system
|
||||
# Written by Jeremy Tregunna <[email protected]>
|
||||
# Base Io build system Written by Jeremy Tregunna <[email protected]>
|
||||
#
|
||||
# Find libogg.
|
||||
|
||||
FIND_PATH(OGG_INCLUDE_DIR ogg/ogg.h)
|
||||
find_path(OGG_INCLUDE_DIR ogg/ogg.h)
|
||||
|
||||
SET(OGG_NAMES ${OGG_NAMES} ogg libogg)
|
||||
FIND_LIBRARY(OGG_LIBRARY NAMES ${OGG_NAMES} PATH)
|
||||
set(OGG_NAMES ${OGG_NAMES} ogg libogg)
|
||||
find_library(OGG_LIBRARY NAMES ${OGG_NAMES} PATH)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OGG DEFAULT_MSG OGG_LIBRARY OGG_INCLUDE_DIR)
|
||||
find_package_handle_standard_args(OGG DEFAULT_MSG OGG_LIBRARY OGG_INCLUDE_DIR)
|
||||
|
||||
mark_as_advanced(OGG_LIBRARY OGG_INCLUDE_DIR)
|
||||
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
|
||||
# The following will be set:
|
||||
|
||||
# PCRE_INCLUDE_DIR
|
||||
# PCRE_LIBRARY
|
||||
# PCRE_FOUND
|
||||
# PCRE_INCLUDE_DIR PCRE_LIBRARY PCRE_FOUND
|
||||
|
||||
find_path(PCRE_INCLUDE_DIR NAMES pcre.h)
|
||||
find_library(PCRE_LIBRARY NAMES pcre)
|
||||
|
||||
# Properly pass QUIETLY and REQUIRED.
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(PCRE DEFAULT_MSG PCRE_INCLUDE_DIR PCRE_LIBRARY)
|
||||
find_package_handle_standard_args(PCRE
|
||||
DEFAULT_MSG
|
||||
PCRE_INCLUDE_DIR
|
||||
PCRE_LIBRARY)
|
||||
|
||||
mark_as_advanced(PCRE_INCLUDE_DIR PCRE_LIBRARY)
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
#
|
||||
# Once done this will define:
|
||||
#
|
||||
# PULSEAUDIO_FOUND - system has the PulseAudio library
|
||||
# PULSEAUDIO_INCLUDE_DIR - the PulseAudio include directory
|
||||
# PULSEAUDIO_LIBRARY - the libraries needed to use PulseAudio
|
||||
# PULSEAUDIO_FOUND - system has the PulseAudio library PULSEAUDIO_INCLUDE_DIR -
|
||||
# the PulseAudio include directory PULSEAUDIO_LIBRARY - the libraries needed to
|
||||
# use PulseAudio
|
||||
#
|
||||
# Copyright (c) 2008, Matthias Kretz, <[email protected]>
|
||||
#
|
||||
@@ -15,33 +15,36 @@
|
||||
#
|
||||
# There was no COPYING-CMAKE-SCRIPTS file in the repo in question. --wolfman
|
||||
|
||||
if (PULSEAUDIO_INCLUDE_DIR AND PULSEAUDIO_LIBRARY)
|
||||
# Already in cache, be silent
|
||||
set(PULSEAUDIO_FIND_QUIETLY TRUE)
|
||||
endif (PULSEAUDIO_INCLUDE_DIR AND PULSEAUDIO_LIBRARY)
|
||||
if(PULSEAUDIO_INCLUDE_DIR AND PULSEAUDIO_LIBRARY)
|
||||
# Already in cache, be silent
|
||||
set(PULSEAUDIO_FIND_QUIETLY TRUE)
|
||||
endif(PULSEAUDIO_INCLUDE_DIR AND PULSEAUDIO_LIBRARY)
|
||||
|
||||
if (NOT WIN32)
|
||||
include(FindPkgConfig)
|
||||
pkg_check_modules(PULSEAUDIO libpulse)
|
||||
if(PULSEAUDIO_FOUND)
|
||||
set(PULSEAUDIO_LIBRARY ${PULSEAUDIO_LIBRARIES} CACHE FILEPATH "Path to the PulseAudio library")
|
||||
set(PULSEAUDIO_INCLUDE_DIR ${PULSEAUDIO_INCLUDEDIR} CACHE PATH "Path to the PulseAudio includes")
|
||||
# PULSEAUDIO_DEFINITIONS - Compiler switches required for using PulseAudio
|
||||
# set(PULSEAUDIO_DEFINITIONS ${PULSEAUDIO_CFLAGS})
|
||||
endif(PULSEAUDIO_FOUND)
|
||||
endif (NOT WIN32)
|
||||
if(NOT WIN32)
|
||||
include(FindPkgConfig)
|
||||
pkg_check_modules(PULSEAUDIO libpulse)
|
||||
if(PULSEAUDIO_FOUND)
|
||||
set(PULSEAUDIO_LIBRARY ${PULSEAUDIO_LIBRARIES}
|
||||
CACHE FILEPATH "Path to the PulseAudio library")
|
||||
set(PULSEAUDIO_INCLUDE_DIR ${PULSEAUDIO_INCLUDEDIR}
|
||||
CACHE PATH "Path to the PulseAudio includes")
|
||||
# PULSEAUDIO_DEFINITIONS - Compiler switches required for using PulseAudio
|
||||
# set(PULSEAUDIO_DEFINITIONS ${PULSEAUDIO_CFLAGS})
|
||||
endif(PULSEAUDIO_FOUND)
|
||||
endif(NOT WIN32)
|
||||
|
||||
if (NOT PULSEAUDIO_INCLUDE_DIR)
|
||||
FIND_PATH(PULSEAUDIO_INCLUDE_DIR pulse/pulseaudio.h)
|
||||
endif (NOT PULSEAUDIO_INCLUDE_DIR)
|
||||
if(NOT PULSEAUDIO_INCLUDE_DIR)
|
||||
find_path(PULSEAUDIO_INCLUDE_DIR pulse/pulseaudio.h)
|
||||
endif(NOT PULSEAUDIO_INCLUDE_DIR)
|
||||
|
||||
if (NOT PULSEAUDIO_LIBRARY)
|
||||
FIND_LIBRARY(PULSEAUDIO_LIBRARY NAMES pulse)
|
||||
endif (NOT PULSEAUDIO_LIBRARY)
|
||||
if(NOT PULSEAUDIO_LIBRARY)
|
||||
find_library(PULSEAUDIO_LIBRARY NAMES pulse)
|
||||
endif(NOT PULSEAUDIO_LIBRARY)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(PULSEAUDIO DEFAULT_MSG
|
||||
PULSEAUDIO_INCLUDE_DIR PULSEAUDIO_LIBRARY)
|
||||
find_package_handle_standard_args(PULSEAUDIO
|
||||
DEFAULT_MSG
|
||||
PULSEAUDIO_INCLUDE_DIR
|
||||
PULSEAUDIO_LIBRARY)
|
||||
|
||||
mark_as_advanced(PULSEAUDIO_INCLUDE_DIR PULSEAUDIO_LIBRARY)
|
||||
|
||||
|
||||
@@ -2,9 +2,7 @@
|
||||
|
||||
# The following will be set:
|
||||
|
||||
# VA_INCLUDE_DIR
|
||||
# VA_LIBRARY
|
||||
# VA_FOUND
|
||||
# VA_INCLUDE_DIR VA_LIBRARY VA_FOUND
|
||||
|
||||
find_path(VA_INCLUDE_DIR NAMES va/va.h)
|
||||
|
||||
@@ -12,6 +10,6 @@ set(VA_NAMES "${VA_NAMES}" "va" "libva")
|
||||
find_library(VA_LIBRARY NAMES ${VA_NAMES})
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(VA DEFAULT_MSG VA_LIBRARY VA_INCLUDE_DIR)
|
||||
find_package_handle_standard_args(VA DEFAULT_MSG VA_LIBRARY VA_INCLUDE_DIR)
|
||||
|
||||
mark_as_advanced(VA_LIBRARY VA_INCLUDE_DIR)
|
||||
|
||||
@@ -1,17 +1,18 @@
|
||||
# Borrowed from code.openhub.net
|
||||
|
||||
# Base Io build system
|
||||
# Written by Jeremy Tregunna <[email protected]>
|
||||
# Base Io build system Written by Jeremy Tregunna <[email protected]>
|
||||
#
|
||||
# Find libvorbis.
|
||||
|
||||
FIND_PATH(VORBIS_INCLUDE_DIR vorbis/codec.h)
|
||||
find_path(VORBIS_INCLUDE_DIR vorbis/codec.h)
|
||||
|
||||
SET(VORBIS_NAMES ${VORBIS_NAMES} vorbis libvorbis)
|
||||
FIND_LIBRARY(VORBIS_LIBRARY NAMES ${VORBIS_NAMES} PATH)
|
||||
set(VORBIS_NAMES ${VORBIS_NAMES} vorbis libvorbis)
|
||||
find_library(VORBIS_LIBRARY NAMES ${VORBIS_NAMES} PATH)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(VORBIS DEFAULT_MSG VORBIS_LIBRARY VORBIS_INCLUDE_DIR)
|
||||
find_package_handle_standard_args(VORBIS
|
||||
DEFAULT_MSG
|
||||
VORBIS_LIBRARY
|
||||
VORBIS_INCLUDE_DIR)
|
||||
|
||||
mark_as_advanced(VORBIS_LIBRARY VORBIS_INCLUDE_DIR)
|
||||
|
||||
|
||||
@@ -2,13 +2,15 @@
|
||||
#
|
||||
# Find libvorbisfile.
|
||||
|
||||
FIND_PATH(VORBISFILE_INCLUDE_DIR vorbis/vorbisfile.h)
|
||||
find_path(VORBISFILE_INCLUDE_DIR vorbis/vorbisfile.h)
|
||||
|
||||
SET(VORBISFILE_NAMES ${VORBISFILE_NAMES} vorbisfile libvorbisfile)
|
||||
FIND_LIBRARY(VORBISFILE_LIBRARY NAMES ${VORBISFILE_NAMES} PATH)
|
||||
set(VORBISFILE_NAMES ${VORBISFILE_NAMES} vorbisfile libvorbisfile)
|
||||
find_library(VORBISFILE_LIBRARY NAMES ${VORBISFILE_NAMES} PATH)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(VORBISFILE DEFAULT_MSG VORBISFILE_LIBRARY VORBISFILE_INCLUDE_DIR)
|
||||
find_package_handle_standard_args(VORBISFILE
|
||||
DEFAULT_MSG
|
||||
VORBISFILE_LIBRARY
|
||||
VORBISFILE_INCLUDE_DIR)
|
||||
|
||||
mark_as_advanced(VORBISFILE_LIBRARY VORBISFILE_INCLUDE_DIR)
|
||||
|
||||
|
||||
@@ -1,52 +1,52 @@
|
||||
# This is borrowed from FreeRDP.
|
||||
# - Find XINERAMA
|
||||
# Find the XINERAMA libraries
|
||||
# This is borrowed from FreeRDP. - Find XINERAMA Find the XINERAMA libraries
|
||||
#
|
||||
# This module defines the following variables:
|
||||
# XINERAMA_FOUND - true if XINERAMA_INCLUDE_DIR & XINERAMA_LIBRARY are found
|
||||
# XINERAMA_LIBRARIES - Set when XINERAMA_LIBRARY is found
|
||||
# XINERAMA_INCLUDE_DIRS - Set when XINERAMA_INCLUDE_DIR is found
|
||||
# This module defines the following variables: XINERAMA_FOUND - true if
|
||||
# XINERAMA_INCLUDE_DIR & XINERAMA_LIBRARY are found XINERAMA_LIBRARIES - Set
|
||||
# when XINERAMA_LIBRARY is found XINERAMA_INCLUDE_DIRS - Set when
|
||||
# XINERAMA_INCLUDE_DIR is found
|
||||
#
|
||||
# XINERAMA_INCLUDE_DIR - where to find Xinerama.h, etc.
|
||||
# XINERAMA_LIBRARY - the XINERAMA library
|
||||
# XINERAMA_INCLUDE_DIR - where to find Xinerama.h, etc. XINERAMA_LIBRARY -
|
||||
# the XINERAMA library
|
||||
#
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2011 O.S. Systems Software Ltda.
|
||||
# Copyright 2011 Otavio Salvador <[email protected]>
|
||||
# Copyright 2011 Marc-Andre Moreau <[email protected]>
|
||||
# =============================================================================
|
||||
# Copyright 2011 O.S. Systems Software Ltda. Copyright 2011 Otavio Salvador
|
||||
# <[email protected]> Copyright 2011 Marc-Andre Moreau
|
||||
# <[email protected]>
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#=============================================================================
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
# =============================================================================
|
||||
|
||||
find_path(XINERAMA_INCLUDE_DIR NAMES X11/extensions/Xinerama.h
|
||||
find_path(XINERAMA_INCLUDE_DIR
|
||||
NAMES X11/extensions/Xinerama.h
|
||||
PATHS /opt/X11/include
|
||||
PATH_SUFFIXES X11/extensions
|
||||
DOC "The Xinerama include directory"
|
||||
)
|
||||
DOC "The Xinerama include directory")
|
||||
|
||||
find_library(XINERAMA_LIBRARY NAMES Xinerama
|
||||
PATHS /opt/X11/lib
|
||||
DOC "The Xinerama library"
|
||||
)
|
||||
find_library(XINERAMA_LIBRARY
|
||||
NAMES Xinerama
|
||||
PATHS /opt/X11/lib
|
||||
DOC "The Xinerama library")
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Xinerama DEFAULT_MSG XINERAMA_LIBRARY XINERAMA_INCLUDE_DIR)
|
||||
find_package_handle_standard_args(Xinerama
|
||||
DEFAULT_MSG
|
||||
XINERAMA_LIBRARY
|
||||
XINERAMA_INCLUDE_DIR)
|
||||
|
||||
if(XINERAMA_FOUND)
|
||||
set( XINERAMA_LIBRARIES ${XINERAMA_LIBRARY} )
|
||||
set( XINERAMA_INCLUDE_DIRS ${XINERAMA_INCLUDE_DIR} )
|
||||
set(XINERAMA_LIBRARIES ${XINERAMA_LIBRARY})
|
||||
set(XINERAMA_INCLUDE_DIRS ${XINERAMA_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
mark_as_advanced(XINERAMA_INCLUDE_DIR XINERAMA_LIBRARY)
|
||||
|
||||
|
||||
@@ -1,44 +1,45 @@
|
||||
# This is borrowed from FreeRDP.
|
||||
# - Find XRANDR
|
||||
# Find the XRANDR libraries
|
||||
# This is borrowed from FreeRDP. - Find XRANDR Find the XRANDR libraries
|
||||
#
|
||||
# This module defines the following variables:
|
||||
# XRANDR_FOUND - true if XRANDR_INCLUDE_DIR & XRANDR_LIBRARY are found
|
||||
# XRANDR_LIBRARIES - Set when XRANDR_LIBRARY is found
|
||||
# XRANDR_INCLUDE_DIRS - Set when XRANDR_INCLUDE_DIR is found
|
||||
# This module defines the following variables: XRANDR_FOUND - true if
|
||||
# XRANDR_INCLUDE_DIR & XRANDR_LIBRARY are found XRANDR_LIBRARIES - Set when
|
||||
# XRANDR_LIBRARY is found XRANDR_INCLUDE_DIRS - Set when XRANDR_INCLUDE_DIR is
|
||||
# found
|
||||
#
|
||||
# XRANDR_INCLUDE_DIR - where to find Xrandr.h, etc.
|
||||
# XRANDR_LIBRARY - the XRANDR library
|
||||
# XRANDR_INCLUDE_DIR - where to find Xrandr.h, etc. XRANDR_LIBRARY - the
|
||||
# XRANDR library
|
||||
#
|
||||
|
||||
#=============================================================================
|
||||
# =============================================================================
|
||||
# Copyright 2012 Alam Arias <[email protected]>
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#=============================================================================
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
# =============================================================================
|
||||
|
||||
find_path(XRANDR_INCLUDE_DIRS NAMES X11/extensions/Xrandr.h
|
||||
PATH_SUFFIXES X11/extensions
|
||||
PATHS /opt/X11/include
|
||||
DOC "The XRANDR include directory"
|
||||
)
|
||||
find_path(XRANDR_INCLUDE_DIRS
|
||||
NAMES X11/extensions/Xrandr.h
|
||||
PATH_SUFFIXES X11/extensions
|
||||
PATHS /opt/X11/include
|
||||
DOC "The XRANDR include directory")
|
||||
|
||||
find_library(XRANDR_LIBRARIES NAMES Xrandr
|
||||
PATHS /opt/X11/lib
|
||||
DOC "The XRANDR library"
|
||||
)
|
||||
find_library(XRANDR_LIBRARIES
|
||||
NAMES Xrandr
|
||||
PATHS /opt/X11/lib
|
||||
DOC "The XRANDR library")
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(XRANDR DEFAULT_MSG XRANDR_LIBRARIES XRANDR_INCLUDE_DIRS)
|
||||
find_package_handle_standard_args(XRANDR
|
||||
DEFAULT_MSG
|
||||
XRANDR_LIBRARIES
|
||||
XRANDR_INCLUDE_DIRS)
|
||||
|
||||
mark_as_advanced(XRANDR_INCLUDE_DIRS XRANDR_LIBRARIES)
|
||||
|
||||
@@ -3,11 +3,9 @@
|
||||
include(FindPackageHandleStandardArgs)
|
||||
|
||||
find_program(NASM_EXECUTABLE nasm
|
||||
HINTS $ENV{NASM_ROOT} ${NASM_ROOT}
|
||||
PATH_SUFFIXES bin
|
||||
)
|
||||
HINTS $ENV{NASM_ROOT} ${NASM_ROOT}
|
||||
PATH_SUFFIXES bin)
|
||||
|
||||
find_package_handle_standard_args(nasm DEFAULT_MSG NASM_EXECUTABLE)
|
||||
|
||||
mark_as_advanced(NASM_EXECUTABLE)
|
||||
|
||||
|
||||
@@ -3,11 +3,9 @@
|
||||
include(FindPackageHandleStandardArgs)
|
||||
|
||||
find_program(YASM_EXECUTABLE yasm
|
||||
HINTS $ENV{YASM_ROOT} ${YASM_ROOT}
|
||||
PATH_SUFFIXES bin
|
||||
)
|
||||
HINTS $ENV{YASM_ROOT} ${YASM_ROOT}
|
||||
PATH_SUFFIXES bin)
|
||||
|
||||
find_package_handle_standard_args(yasm DEFAULT_MSG YASM_EXECUTABLE)
|
||||
|
||||
mark_as_advanced(YASM_EXECUTABLE)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user