2009-01-29 22:35:15 +08:00
|
|
|
SET(TARGET_SRC
|
|
|
|
broadcaster.cpp
|
|
|
|
receiver.cpp
|
|
|
|
osgcluster.cpp
|
|
|
|
)
|
|
|
|
|
2009-01-30 00:38:46 +08:00
|
|
|
IF (WIN32)
|
|
|
|
SET(TARGET_EXTERNAL_LIBRARIES ws2_32)
|
2010-12-02 22:13:54 +08:00
|
|
|
ELSE(WIN32)
|
|
|
|
CHECK_LIBRARY_EXISTS("nsl" "gethostbyname" "" LIB_NSL_HAS_GETHOSTBYNAME)
|
|
|
|
IF(LIB_NSL_HAS_GETHOSTBYNAME)
|
|
|
|
SET(TARGET_EXTERNAL_LIBRARIES ${TARGET_EXTERNAL_LIBRARIES} nsl)
|
|
|
|
ENDIF()
|
|
|
|
CHECK_LIBRARY_EXISTS("socket" "socket" "" LIB_SOCKET_HAS_SOCKET)
|
|
|
|
IF(LIB_SOCKET_HAS_SOCKET)
|
|
|
|
SET(TARGET_EXTERNAL_LIBRARIES ${TARGET_EXTERNAL_LIBRARIES} socket)
|
|
|
|
ENDIF()
|
2009-01-30 00:38:46 +08:00
|
|
|
ENDIF(WIN32)
|
|
|
|
|
2009-01-29 22:35:15 +08:00
|
|
|
#### end var setup ###
|
|
|
|
SETUP_EXAMPLE(osgcluster)
|