add win32 compatibility

Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
Hoernchen
2012-04-02 20:56:24 +02:00
committed by Steve Markgraf
parent ff50e0beda
commit 229ebd2ff2
7 changed files with 311 additions and 15 deletions

View File

@@ -46,17 +46,22 @@ endif()
########################################################################
find_package(PkgConfig)
find_package(LibUSB)
set(THREADS_USE_PTHREADS_WIN32 true)
find_package(Threads)
if(NOT LIBUSB_FOUND)
message(FATAL_ERROR "LibUSB 1.0 required to compile rtl-sdr")
endif()
if(NOT THREADS_FOUND)
message(FATAL_ERROR "pthreads(-win32) required to compile osmosdrtlnw")
endif()
########################################################################
# Setup the include and linker paths
########################################################################
include_directories(
${CMAKE_SOURCE_DIR}/include
${LIBUSB_INCLUDE_DIR}
${THREADS_PTHREADS_INCLUDE_DIR}
)
#link_directories(