OpenSceneGraph/examples/osgcluster/CMakeLists.txt
Robert Osfield 65aee287e7 From Mathias Froehlich, "Attached are most of the fixes that are required to build osg on solaris and
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."
2010-12-02 14:13:54 +00:00

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)