fix CMake build files
This commit is contained in:
parent
9cc3dca98b
commit
fe0396e392
4 changed files with 7 additions and 5 deletions
|
@ -12,10 +12,6 @@ FOREACH(source ${EXAMPLES-SOURCES})
|
|||
INSTALL(TARGETS ${source} RUNTIME DESTINATION bin COMPONENT examples)
|
||||
ENDFOREACH(source)
|
||||
|
||||
# Headers
|
||||
FILE(GLOB headers "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
|
||||
INSTALL(FILES ${headers} DESTINATION ${INCLUDE_INSTALL_DIR}/nfc COMPONENT headers)
|
||||
|
||||
# Manuals for the examples
|
||||
FILE(GLOB manuals "${CMAKE_CURRENT_SOURCE_DIR}/*.1")
|
||||
INSTALL(FILES ${manuals} DESTINATION ${SHARE_INSTALL_PREFIX}/man/man1 COMPONENT manuals)
|
||||
|
|
2
src/include/CMakeLists.txt
Normal file
2
src/include/CMakeLists.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
ADD_SUBDIRECTORY(nfc)
|
||||
|
4
src/include/nfc/CMakeLists.txt
Normal file
4
src/include/nfc/CMakeLists.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Headers
|
||||
FILE(GLOB headers "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
|
||||
INSTALL(FILES ${headers} DESTINATION ${INCLUDE_INSTALL_DIR}/nfc COMPONENT headers)
|
||||
|
|
@ -23,7 +23,7 @@ IF(LIBNFC_USB)
|
|||
FIND_PACKAGE(LIBUSB REQUIRED)
|
||||
ADD_DEFINITIONS("-DHAVE_LIBUSB=1")
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${LIBUSB_CFLAGS_OTHER}")
|
||||
SET(DRIVERS_SOURCES ${DRIVERS_SOURCES} "drivers/pn531_usb" "drivers/pn533_usb")
|
||||
SET(DRIVERS_SOURCES ${DRIVERS_SOURCES} "drivers/pn531_usb" "drivers/pn533_usb" "drivers/pn53x_usb.c")
|
||||
ENDIF(LIBNFC_USB)
|
||||
|
||||
INCLUDE_DIRECTORIES(${LIBUSB_INCLUDE_DIRS} ${PCSC_INCLUDE_DIRS})
|
||||
|
|
Loading…
Reference in a new issue