Changeset 1132
- Timestamp:
- 01/08/10 22:57:14 (14 years ago)
- Location:
- branches/smartreader
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/smartreader/CMakeLists.txt
r1128 r1132 55 55 set (CS_OS_HW "mac") 56 56 set (CS_OS_SYS "macosx") 57 SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32" ) 58 SET( CMAKE_CFLAGS "${CMAKE_CFLAGS} -m32" ) 57 59 elseif (${CYGWIN}) 58 60 set (OSCamOperatingSystem "Windows/Cygwin") … … 139 141 if (HAVE_LIBUSB) 140 142 add_definitions ("-DHAVE_LIBUSB") 141 add_definitions ("`libusb-config --cflags`") 143 elseif (HAVE_USB) 144 message(STATUS " no libusb found. No smartreader ") 142 145 endif (HAVE_LIBUSB) 143 146 … … 214 217 if( ${USB_INCLUDE} MATCHES "USB_INCLUDE-NOTFOUND" ) 215 218 set (HAVE_LIBUSB "0") 216 message (STATUS " libusb usb.h includenot found .. no smartreader support")219 message (STATUS "OS X libusb includes not found .. no smartreader support") 217 220 else ( ${USB_INCLUDE} MATCHES "USB_INCLUDE-NOTFOUND" ) 218 message (STATUS " libusb usb.hinclude : ${USB_INCLUDE}")221 message (STATUS "OS X libusb include : ${USB_INCLUDE}") 219 222 FIND_LIBRARY (USB_LIBRARY usb) 220 223 message (STATUS "OS X libusb : ${USB_LIBRARY}") 221 222 include_directories( SYSTEM ${USB_INCLUDE})224 target_link_libraries ( ${exe_name} ${USB_LIBRARY}) 225 include_directories( SYSTEM ${USB_INCLUDE}) 223 226 set (HAVE_LIBUSB "1") 224 227 endif ( ${USB_INCLUDE} MATCHES "USB_INCLUDE-NOTFOUND" ) 225 message(STATUS "include dirs : ${INCLUDE_DIRECTORIES}")226 227 228 elseif (OSCamOperatingSystem MATCHES "Tuxbox") 228 229 target_link_libraries ( ${exe_name} dl) -
branches/smartreader/csctapi/CMakeLists.txt
r1128 r1132 4 4 file (GLOB csctapi_hdrs "*.h") 5 5 6 check_include_file ("usb.h" HAVE_LIBUSB) 7 if (HAVE_LIBUSB) 8 add_definitions ("-DHAVE_LIBUSB") 9 endif (HAVE_LIBUSB) 10 11 if (HAVE_LIBUSB) 12 target_link_libraries (${exe_name} usb) 13 endif (HAVE_LIBUSB) 14 6 15 if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") 7 add_definitions ("-O2 -Winline -Werror -finline-functions -fomit-frame-pointer -s -m32") 16 add_definitions ("-O2 -Winline -Werror -finline-functions -fomit-frame-pointer -s -m32") 17 SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32" ) 18 FIND_PATH( USB_INCLUDE usb.h) 19 if( ${USB_INCLUDE} MATCHES "USB_INCLUDE-NOTFOUND" ) 20 set (HAVE_LIBUSB "0") 21 else ( ${USB_INCLUDE} MATCHES "USB_INCLUDE-NOTFOUND" ) 22 FIND_LIBRARY (USB_LIBRARY usb) 23 target_link_libraries ( ${exe_name} ${USB_LIBRARY}) 24 include_directories( SYSTEM ${USB_INCLUDE} ) 25 set (HAVE_LIBUSB "1") 26 endif ( ${USB_INCLUDE} MATCHES "USB_INCLUDE-NOTFOUND" ) 8 27 else (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") 9 add_definitions ("-O2 -Winline -Werror -finline-functions -fomit-frame-pointer -s")28 add_definitions ("-O2 -Winline -Werror -finline-functions -fomit-frame-pointer -s") 10 29 endif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") 11 30 12 FIND_PATH( USB_INCLUDE usb.h)13 if( ${USB_INCLUDE} MATCHES "USB_INCLUDE-NOTFOUND" )14 set (HAVE_LIBUSB "0")15 message (STATUS "libusb usb.h include not found .. no smartreader support")16 else ( ${USB_INCLUDE} MATCHES "USB_INCLUDE-NOTFOUND" )17 message (STATUS "libusb usb.h include : ${USB_INCLUDE}")18 FIND_LIBRARY (USB_LIBRARY usb)19 message (STATUS "OS X libusb : ${USB_LIBRARY}")20 target_link_libraries ( ${exe_name} ${USB_LIBRARY})21 include_directories( SYSTEM ${USB_INCLUDE} )22 set (HAVE_LIBUSB "1")23 endif ( ${USB_INCLUDE} MATCHES "USB_INCLUDE-NOTFOUND" )24 message(STATUS "include dirs : ${INCLUDE_DIRECTORIES}")25 26 31 set (lib_name "csctapi") 27 28 32 add_library (${lib_name} STATIC ${csctapi_srcs} ${csctapi_hdrs}) 29 33
Note:
See TracChangeset
for help on using the changeset viewer.