|
| 1 | +# |
| 2 | +# For more information, please see: http://software.sci.utah.edu |
| 3 | +# |
| 4 | +# The MIT License |
| 5 | +# |
| 6 | +# Copyright (c) 2009 Scientific Computing and Imaging Institute, |
| 7 | +# University of Utah. |
| 8 | +# |
| 9 | +# |
| 10 | +# Permission is hereby granted, free of charge, to any person obtaining a |
| 11 | +# copy of this software and associated documentation files (the "Software"), |
| 12 | +# to deal in the Software without restriction, including without limitation |
| 13 | +# the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 14 | +# and/or sell copies of the Software, and to permit persons to whom the |
| 15 | +# Software is furnished to do so, subject to the following conditions: |
| 16 | +# |
| 17 | +# The above copyright notice and this permission notice shall be included |
| 18 | +# in all copies or substantial portions of the Software. |
| 19 | +# |
| 20 | +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
| 21 | +# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 22 | +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 23 | +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 24 | +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 25 | +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
| 26 | +# DEALINGS IN THE SOFTWARE. |
| 27 | +# |
| 28 | + |
| 29 | +# Sources of Core/ICom classes |
| 30 | +SET(Core_ICom_SRCS |
| 31 | + IComAddress.cc |
| 32 | + IComPacket.cc |
| 33 | + IComSocket.cc |
| 34 | + IComVirtualSocket.cc |
| 35 | + IComINetSocket.cc |
| 36 | + IComInternalSocket.cc |
| 37 | + #IComSslSocket.cc |
| 38 | + #IComRHostList.cc |
| 39 | +) |
| 40 | + |
| 41 | +SET(Core_ICom_HEADERS |
| 42 | + IComAddress.h |
| 43 | + IComPacket.h |
| 44 | + IComSocket.h |
| 45 | + IComVirtualSocket.h |
| 46 | + IComINetSocket.h |
| 47 | + IComInternalSocket.h |
| 48 | + IComSslSocket.h |
| 49 | + IComRHostList.h |
| 50 | + IComBase.h |
| 51 | + IComFwd.h |
| 52 | + share.h |
| 53 | +) |
| 54 | + |
| 55 | +SCIRUN_ADD_LIBRARY(Core_ICom ${Core_ICom_SRCS} ${Core_ICom_HEADERS}) |
| 56 | + |
| 57 | +######################################################################## |
| 58 | +# Socket library |
| 59 | +# DV Not sure if socket library needs to be defined for cygwin |
| 60 | + |
| 61 | +IF(WIN32 AND NOT CYGWIN) |
| 62 | + SET(SOCKET_LIBRARY ws2_32 CACHE INTERNAL "Socket library ws2_32") |
| 63 | + SET(THREAD_LIBRARY winmm CACHE INTERNAL "Time functionality library winmm") |
| 64 | +ENDIF(WIN32 AND NOT CYGWIN) |
| 65 | + |
| 66 | +TARGET_LINK_LIBRARIES(Core_ICom |
| 67 | + Core_Thread |
| 68 | + #Core_Util |
| 69 | + #Core_Exceptions |
| 70 | + ${SOCKET_LIBRARY} |
| 71 | +) |
| 72 | + |
| 73 | +IF(BUILD_SHARED_LIBS) |
| 74 | + ADD_DEFINITIONS(-DBUILD_Core_ICom) |
| 75 | +ENDIF(BUILD_SHARED_LIBS) |
0 commit comments