diff options
| author | Hoernchen <la@tfc-server.de> | 2012-04-02 20:56:24 +0200 |
|---|---|---|
| committer | Steve Markgraf <steve@steve-m.de> | 2012-04-02 21:00:26 +0200 |
| commit | 229ebd2ff2f312869944da6bf01c181f559dd493 (patch) | |
| tree | 7d35dfcee5bc6747c21eac5d396e2d71f1925add /CMakeLists.txt | |
| parent | ff50e0bedadc6f617431f374d96a8161a3e0e7fd (diff) | |
add win32 compatibility
Signed-off-by: Steve Markgraf <steve@steve-m.de>
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index eb62cc1..f278325 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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( |
