# Find TUIO # # This module defines # TUIO_FOUND # TUIO_INCLUDE_DIRS # TUIO_LIBRARIES # # Copyright (c) 2014 I-maginer # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 59 Temple # Place - Suite 330, Boston, MA 02111-1307, USA, or go to # http://www.gnu.org/copyleft/lesser.txt # # - Try to find TUIO # Once done, this will define # # TUIO_FOUND - system has TUIO # TUIO_INCLUDE_DIRS - the TUIO include directories # TUIO_LIBRARIES - link these to use TUIO include(FindPkgMacros) findpkg_begin(TUIO) # Get path, convert backslashes as ${ENV_${var}} getenv_path(TUIO_HOME) # construct search paths set(TUIO_PREFIX_PATH ${TUIO_HOME} ${ENV_TUIO_HOME} ) create_search_paths(TUIO) # redo search if prefix path changed clear_if_changed(TUIO_PREFIX_PATH TUIO_LIBRARY_FWK TUIO_LIBRARY_REL TUIO_LIBRARY_DBG TUIO_INCLUDE_DIR ) set(TUIO_LIBRARY_NAMES TUIO) get_debug_names(TUIO_LIBRARY_NAMES) use_pkgconfig(TUIO_PKGC TUIO-config) findpkg_framework(TUIO) find_path(TUIO_INCLUDE_DIR NAMES TUIO/TuioClient.h HINTS ${TUIO_INC_SEARCH_PATH} ${TUIO_PKGC_INCLUDE_DIRS}) find_library(TUIO_LIBRARY_REL NAMES ${TUIO_LIBRARY_NAMES} HINTS ${TUIO_LIB_SEARCH_PATH} ${TUIO_PKGC_LIBRARY_DIRS} PATH_SUFFIXES "" Release RelWithDebInfo MinSizeRel ${ANDROID_ABI}) find_library(TUIO_LIBRARY_DBG NAMES ${TUIO_LIBRARY_NAMES_DBG} HINTS ${TUIO_LIB_SEARCH_PATH} ${TUIO_PKGC_LIBRARY_DIRS} PATH_SUFFIXES "" Debug ${ANDROID_ABI}) make_library_set(TUIO_LIBRARY) findpkg_finish(TUIO) set (TUIO_INCLUDE_DIRS ${TUIO_INCLUDE_DIRS} ${TUIO_INCLUDE_DIR}/TUIO ${TUIO_INCLUDE_DIR}/TUIO/oscpack)