diff options
| -rw-r--r-- | host/lib/CMakeLists.txt | 8 | ||||
| -rw-r--r-- | host/tests/CMakeLists.txt | 6 | 
2 files changed, 12 insertions, 2 deletions
| diff --git a/host/lib/CMakeLists.txt b/host/lib/CMakeLists.txt index 8ca7c7dca..268f05df6 100644 --- a/host/lib/CMakeLists.txt +++ b/host/lib/CMakeLists.txt @@ -69,6 +69,14 @@ MACRO(INCLUDE_SUBDIRECTORY subdir)  ENDMACRO(INCLUDE_SUBDIRECTORY)  ######################################################################## +# Cygwin special +######################################################################## +IF(CYGWIN) +    ADD_DEFINITIONS(-D__USE_W32_SOCKETS) #boost asio says we need this +    LIBUHD_APPEND_LIBS(ws2_32) +ENDIF(CYGWIN) + +########################################################################  # Include subdirectories (different than add)  ########################################################################  INCLUDE_SUBDIRECTORY(ic_reg_maps) diff --git a/host/tests/CMakeLists.txt b/host/tests/CMakeLists.txt index 821b2eb9e..f08fe669b 100644 --- a/host/tests/CMakeLists.txt +++ b/host/tests/CMakeLists.txt @@ -50,5 +50,7 @@ ENDFOREACH(test_source)  ########################################################################  # demo of a loadable module  ######################################################################## -ADD_LIBRARY(module_test MODULE module_test.cpp) -TARGET_LINK_LIBRARIES(module_test uhd) +IF(MSVC OR APPLE OR LINUX) +    ADD_LIBRARY(module_test MODULE module_test.cpp) +    TARGET_LINK_LIBRARIES(module_test uhd) +ENDIF() | 
