mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Initial commit
This commit is contained in:
+74
@@ -0,0 +1,74 @@
|
||||
# libConfuse is a configuration file parser library
|
||||
# available at http://www.nongnu.org/confuse/
|
||||
#
|
||||
# The module defines the following variables:
|
||||
# CONFUSE_FOUND - the system has Confuse
|
||||
# CONFUSE_INCLUDE_DIR - where to find confuse.h
|
||||
# CONFUSE_INCLUDE_DIRS - confuse includes
|
||||
# CONFUSE_LIBRARY - where to find the Confuse library
|
||||
# CONFUSE_LIBRARIES - aditional libraries
|
||||
# CONFUSE_ROOT_DIR - root dir (ex. /usr/local)
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2010-2013, Julien Schueller
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of source code must retain the above copyright notice, this
|
||||
# list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
# this list of conditions and the following disclaimer in the documentation
|
||||
# and/or other materials provided with the distribution.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# The views and conclusions contained in the software and documentation are those
|
||||
# of the authors and should not be interpreted as representing official policies,
|
||||
# either expressed or implied, of the FreeBSD Project.
|
||||
#=============================================================================
|
||||
|
||||
|
||||
find_path ( CONFUSE_INCLUDE_DIR
|
||||
NAMES confuse.h
|
||||
)
|
||||
|
||||
set ( CONFUSE_INCLUDE_DIRS ${CONFUSE_INCLUDE_DIR} )
|
||||
|
||||
find_library ( CONFUSE_LIBRARY
|
||||
NAMES confuse
|
||||
)
|
||||
|
||||
set ( CONFUSE_LIBRARIES ${CONFUSE_LIBRARY} )
|
||||
|
||||
|
||||
# try to guess root dir from include dir
|
||||
if ( CONFUSE_INCLUDE_DIR )
|
||||
string ( REGEX REPLACE "(.*)/include.*" "\\1" CONFUSE_ROOT_DIR ${CONFUSE_INCLUDE_DIR} )
|
||||
# try to guess root dir from library dir
|
||||
elseif ( CONFUSE_LIBRARY )
|
||||
string ( REGEX REPLACE "(.*)/lib[/|32|64].*" "\\1" CONFUSE_ROOT_DIR ${CONFUSE_LIBRARY} )
|
||||
endif ()
|
||||
|
||||
|
||||
# handle the QUIETLY and REQUIRED arguments
|
||||
include ( FindPackageHandleStandardArgs )
|
||||
find_package_handle_standard_args( Confuse DEFAULT_MSG CONFUSE_LIBRARY CONFUSE_INCLUDE_DIR )
|
||||
|
||||
mark_as_advanced (
|
||||
CONFUSE_LIBRARY
|
||||
CONFUSE_LIBRARIES
|
||||
CONFUSE_INCLUDE_DIR
|
||||
CONFUSE_INCLUDE_DIRS
|
||||
CONFUSE_ROOT_DIR
|
||||
)
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
# Try to find Libintl functionality
|
||||
# Once done this will define
|
||||
#
|
||||
# LIBINTL_FOUND - system has Libintl
|
||||
# LIBINTL_INCLUDE_DIR - Libintl include directory
|
||||
# LIBINTL_LIBRARIES - Libraries needed to use Libintl
|
||||
#
|
||||
# TODO: This will enable translations only if Gettext functionality is
|
||||
# present in libc. Must have more robust system for release, where Gettext
|
||||
# functionality can also reside in standalone Gettext library, or the one
|
||||
# embedded within kdelibs (cf. gettext.m4 from Gettext source).
|
||||
|
||||
# Copyright (c) 2006, Chusslove Illich, <caslav.ilic@gmx.net>
|
||||
# Copyright (c) 2007, Alexander Neundorf, <neundorf@kde.org>
|
||||
#
|
||||
# Redistribution and use is allowed according to the terms of the BSD license.
|
||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||
|
||||
if(LIBINTL_INCLUDE_DIR AND LIBINTL_LIB_FOUND)
|
||||
set(Libintl_FIND_QUIETLY TRUE)
|
||||
endif(LIBINTL_INCLUDE_DIR AND LIBINTL_LIB_FOUND)
|
||||
|
||||
find_path(LIBINTL_INCLUDE_DIR libintl.h)
|
||||
|
||||
set(LIBINTL_LIB_FOUND FALSE)
|
||||
|
||||
if(LIBINTL_INCLUDE_DIR)
|
||||
include(CheckFunctionExists)
|
||||
check_function_exists(dgettext LIBINTL_LIBC_HAS_DGETTEXT)
|
||||
|
||||
if (LIBINTL_LIBC_HAS_DGETTEXT)
|
||||
set(LIBINTL_LIBRARIES)
|
||||
set(LIBINTL_LIB_FOUND TRUE)
|
||||
else (LIBINTL_LIBC_HAS_DGETTEXT)
|
||||
find_library(LIBINTL_LIBRARIES NAMES intl libintl )
|
||||
if(LIBINTL_LIBRARIES)
|
||||
set(LIBINTL_LIB_FOUND TRUE)
|
||||
endif(LIBINTL_LIBRARIES)
|
||||
endif (LIBINTL_LIBC_HAS_DGETTEXT)
|
||||
|
||||
endif(LIBINTL_INCLUDE_DIR)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(Libintl DEFAULT_MSG LIBINTL_INCLUDE_DIR LIBINTL_LIB_FOUND)
|
||||
|
||||
mark_as_advanced(LIBINTL_INCLUDE_DIR LIBINTL_LIBRARIES LIBINTL_LIBC_HAS_DGETTEXT LIBINTL_LIB_FOUND)
|
||||
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
# - Try to find the freetype library
|
||||
# Once done this defines
|
||||
#
|
||||
# LIBUSB_FOUND - system has libusb
|
||||
# LIBUSB_INCLUDE_DIR - the libusb include directory
|
||||
# LIBUSB_LIBRARIES - Link these to use libusb
|
||||
|
||||
# Copyright (c) 2006, 2008 Laurent Montel, <montel@kde.org>
|
||||
#
|
||||
# Redistribution and use is allowed according to the terms of the BSD license.
|
||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||
|
||||
|
||||
if (LIBUSB_INCLUDE_DIR AND LIBUSB_LIBRARIES)
|
||||
|
||||
# in cache already
|
||||
set(LIBUSB_FOUND TRUE)
|
||||
|
||||
else (LIBUSB_INCLUDE_DIR AND LIBUSB_LIBRARIES)
|
||||
# use pkg-config to get the directories and then use these values
|
||||
# in the FIND_PATH() and FIND_LIBRARY() calls
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(PC_LIBUSB libusb-1.0)
|
||||
|
||||
FIND_PATH(LIBUSB_INCLUDE_DIR libusb.h
|
||||
PATH_SUFFIXES libusb-1.0
|
||||
PATHS ${PC_LIBUSB_INCLUDEDIR} ${PC_LIBUSB_INCLUDE_DIRS})
|
||||
|
||||
FIND_LIBRARY(LIBUSB_LIBRARIES NAMES usb-1.0
|
||||
PATHS ${PC_LIBUSB_LIBDIR} ${PC_LIBUSB_LIBRARY_DIRS})
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBUSB DEFAULT_MSG LIBUSB_LIBRARIES LIBUSB_INCLUDE_DIR)
|
||||
|
||||
MARK_AS_ADVANCED(LIBUSB_INCLUDE_DIR LIBUSB_LIBRARIES)
|
||||
|
||||
endif (LIBUSB_INCLUDE_DIR AND LIBUSB_LIBRARIES)
|
||||
@@ -0,0 +1,53 @@
|
||||
# -*- cmake -*-
|
||||
#
|
||||
# LibFTDI1Config.cmake(.in)
|
||||
#
|
||||
# Copyright (C) 2013 Intra2net AG and the libftdi developers
|
||||
#
|
||||
# This file is part of LibFTDI.
|
||||
#
|
||||
# LibFTDI is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License
|
||||
# version 2.1 as published by the Free Software Foundation;
|
||||
#
|
||||
|
||||
# Use the following variables to compile and link against LibFTDI:
|
||||
# LIBFTDI_FOUND - True if LibFTDI was found on your system
|
||||
# LIBFTDI_USE_FILE - The file making LibFTDI usable
|
||||
# LIBFTDI_DEFINITIONS - Definitions needed to build with LibFTDI
|
||||
# LIBFTDI_INCLUDE_DIRS - Directory where ftdi.h can be found
|
||||
# LIBFTDI_INCLUDE_DIRS - List of directories of LibFTDI and it's dependencies
|
||||
# LIBFTDI_LIBRARY - LibFTDI library location
|
||||
# LIBFTDI_LIBRARIES - List of libraries to link against LibFTDI library
|
||||
# LIBFTDIPP_LIBRARY - LibFTDI C++ wrapper library location
|
||||
# LIBFTDIPP_LIBRARIES - List of libraries to link against LibFTDI C++ wrapper
|
||||
# LIBFTDI_LIBRARY_DIRS - List of directories containing LibFTDI' libraries
|
||||
# LIBFTDI_ROOT_DIR - The base directory of LibFTDI
|
||||
# LIBFTDI_VERSION_STRING - A human-readable string containing the version
|
||||
# LIBFTDI_VERSION_MAJOR - The major version of LibFTDI
|
||||
# LIBFTDI_VERSION_MINOR - The minor version of LibFTDI
|
||||
# LIBFTDI_VERSION_PATCH - The patch version of LibFTDI
|
||||
# LIBFTDI_PYTHON_MODULE_PATH - Path to the python module
|
||||
|
||||
set ( LIBFTDI_FOUND 1 )
|
||||
set ( LIBFTDI_USE_FILE "@LIBFTDI_USE_FILE@" )
|
||||
|
||||
set ( LIBFTDI_DEFINITIONS "@LIBFTDI_DEFINITIONS@" )
|
||||
set ( LIBFTDI_INCLUDE_DIR "@LIBFTDI_INCLUDE_DIR@" )
|
||||
set ( LIBFTDI_INCLUDE_DIRS "@LIBFTDI_INCLUDE_DIRS@" )
|
||||
set ( LIBFTDI_LIBRARY "@LIBFTDI_LIBRARY@" )
|
||||
set ( LIBFTDI_LIBRARIES "@LIBFTDI_LIBRARIES@" )
|
||||
set ( LIBFTDI_STATIC_LIBRARY "@LIBFTDI_STATIC_LIBRARY@" )
|
||||
set ( LIBFTDI_STATIC_LIBRARIES "@LIBFTDI_STATIC_LIBRARIES@" )
|
||||
set ( LIBFTDIPP_LIBRARY "@LIBFTDIPP_LIBRARY@" )
|
||||
set ( LIBFTDIPP_LIBRARIES "@LIBFTDIPP_LIBRARIES@" )
|
||||
set ( LIBFTDI_LIBRARY_DIRS "@LIBFTDI_LIBRARY_DIRS@" )
|
||||
set ( LIBFTDI_ROOT_DIR "@LIBFTDI_ROOT_DIR@" )
|
||||
|
||||
set ( LIBFTDI_VERSION_STRING "@LIBFTDI_VERSION_STRING@" )
|
||||
set ( LIBFTDI_VERSION_MAJOR "@LIBFTDI_VERSION_MAJOR@" )
|
||||
set ( LIBFTDI_VERSION_MINOR "@LIBFTDI_VERSION_MINOR@" )
|
||||
set ( LIBFTDI_VERSION_PATCH "@LIBFTDI_VERSION_PATCH@" )
|
||||
|
||||
set ( LIBFTDI_PYTHON_MODULE_PATH "@LIBFTDI_PYTHON_MODULE_PATH@" )
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
# This is a basic version file for the Config-mode of find_package().
|
||||
# It is used by write_basic_package_version_file() as input file for configure_file()
|
||||
# to create a version-file which can be installed along a config.cmake file.
|
||||
#
|
||||
# The created file sets PACKAGE_VERSION_EXACT if the current version string and
|
||||
# the requested version string are exactly the same and it sets
|
||||
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version.
|
||||
# The variable CVF_VERSION must be set before calling configure_file().
|
||||
|
||||
set(PACKAGE_VERSION "@LIBFTDI_VERSION_STRING@")
|
||||
|
||||
if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" )
|
||||
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
||||
else()
|
||||
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
||||
if( "${PACKAGE_FIND_VERSION}" STREQUAL "${PACKAGE_VERSION}")
|
||||
set(PACKAGE_VERSION_EXACT TRUE)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
|
||||
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "")
|
||||
return()
|
||||
endif()
|
||||
|
||||
# check that the installed version has the same 32/64bit-ness as the one which is currently searching:
|
||||
if(NOT "${CMAKE_SIZEOF_VOID_P}" STREQUAL "8")
|
||||
math(EXPR installedBits "8 * 8")
|
||||
set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
|
||||
set(PACKAGE_VERSION_UNSUITABLE TRUE)
|
||||
endif()
|
||||
@@ -0,0 +1,4 @@
|
||||
set(CMAKE_SYSTEM_NAME Linux)
|
||||
set(CMAKE_C_COMPILER gcc -m32)
|
||||
set(CMAKE_CXX_COMPILER g++ -m32)
|
||||
set(CMAKE_FIND_ROOT_PATH /usr/lib)
|
||||
@@ -0,0 +1,17 @@
|
||||
# the name of the target operating system
|
||||
SET(CMAKE_SYSTEM_NAME Windows)
|
||||
|
||||
# which compilers to use for C and C++
|
||||
SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
|
||||
SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
|
||||
|
||||
# here is the target environment located
|
||||
SET(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32 )
|
||||
|
||||
# adjust the default behaviour of the FIND_XXX() commands:
|
||||
# search headers and libraries in the target environment, search
|
||||
# programs in the host environment
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||
set (CMAKE_RC_COMPILER i686-w64-mingw32-windres)
|
||||
@@ -0,0 +1,16 @@
|
||||
# the name of the target operating system
|
||||
SET(CMAKE_SYSTEM_NAME Windows)
|
||||
|
||||
# which compilers to use for C and C++
|
||||
SET(CMAKE_C_COMPILER i386-mingw32msvc-gcc)
|
||||
SET(CMAKE_CXX_COMPILER i386-mingw32msvc-g++)
|
||||
|
||||
# here is the target environment located
|
||||
SET(CMAKE_FIND_ROOT_PATH /opt/cross/i386-mingw32msvc )
|
||||
|
||||
# adjust the default behaviour of the FIND_XXX() commands:
|
||||
# search headers and libraries in the target environment, search
|
||||
# programs in the host environment
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||
@@ -0,0 +1,17 @@
|
||||
# the name of the target operating system
|
||||
SET(CMAKE_SYSTEM_NAME Windows)
|
||||
|
||||
# which compilers to use for C and C++
|
||||
SET(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
|
||||
SET(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
|
||||
|
||||
# here is the target environment located
|
||||
SET(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32 )
|
||||
|
||||
# adjust the default behaviour of the FIND_XXX() commands:
|
||||
# search headers and libraries in the target environment, search
|
||||
# programs in the host environment
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||
set (CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
# -*- cmake -*-
|
||||
#
|
||||
# UseLibFTDI.cmake
|
||||
#
|
||||
# Copyright (C) 2013 Intra2net AG and the libftdi developers
|
||||
#
|
||||
# This file is part of LibFTDI.
|
||||
#
|
||||
# LibFTDI is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License
|
||||
# version 2.1 as published by the Free Software Foundation;
|
||||
#
|
||||
|
||||
|
||||
add_definitions ( ${LIBFTDI_DEFINITIONS} )
|
||||
include_directories ( ${LIBFTDI_INCLUDE_DIRS} )
|
||||
link_directories ( ${LIBFTDI_LIBRARY_DIRS} )
|
||||
|
||||
Reference in New Issue
Block a user