65aee287e7
hpux. I have skipped irix this time as irix is too dead to keep osg building there. As usual, solaris does not like member templates in stl containers. Some headers missing and link problems due to missing libraries."
22 lines
575 B
CMake
22 lines
575 B
CMake
SET(TARGET_SRC
|
|
broadcaster.cpp
|
|
receiver.cpp
|
|
osgcluster.cpp
|
|
)
|
|
|
|
IF (WIN32)
|
|
SET(TARGET_EXTERNAL_LIBRARIES ws2_32)
|
|
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()
|
|
ENDIF(WIN32)
|
|
|
|
#### end var setup ###
|
|
SETUP_EXAMPLE(osgcluster)
|