Move cmake files around.

Update issue 62
Looks like I missed the -p0 argument to patch.  Can you please update and test?
Thanks!
This commit is contained in:
Romain Tartiere 2011-04-25 10:38:25 +00:00
parent 0abe2c9d66
commit 9e45b01802
3 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,33 @@
/*-
* Copyright (C) 2011 Glenn Ergeerts.
*
* 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 3 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 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, see <http://www.gnu.org/licenses/>
*
* $Id$
*/
#ifndef __CONFIG_WINDOWS_H__
#define __CONFIG_WINDOWS_H__
#include <winsock2.h>
#define htole32(x) (x)
#define le32toh(x) (x)
#define le16toh(x) (x)
#define htobe16(x) htons(x)
#define be16toh(x) ntohs(x)
#define ENOTSUP WSAEOPNOTSUPP
#endif /* !__CONFIG_WINDOWS_H__ */

View file

@ -0,0 +1,21 @@
# $Id$
# TODO locate using pkg-config for linux/bsd
#set(LIBNFC_INCLUDE_DIRS "")
#set(LIBNFC_LIBRARIES "")
set(LIBNFC_INSTALL_DIR $ENV{PROGRAMFILES}/libnfc CACHE PATH "libnfc installation directory")
message("libnfc install dir: " ${LIBNFC_INSTALL_DIR})
find_path(LIBNFC_INCLUDE_DIRS NAMES nfc/nfc.h PATHS ${LIBNFC_INSTALL_DIR}/include)
message("libnfc include dir found: " ${LIBNFC_INCLUDE_DIRS})
find_library(LIBNFC_LIBRARIES libnfc PATHS ${LIBNFC_INSTALL_DIR}/lib)
message("libnfc library found: " ${LIBNFC_LIBRARIES})
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBNFC DEFAULT_MSG
LIBNFC_INCLUDE_DIRS
LIBNFC_LIBRARIES
)
MARK_AS_ADVANCED(LIBNFC_INCLUDE_DIRS LIBNFC_LIBRARIES)