CMakeLists.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. ################################################################################
  2. # HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. ################################################################################
  16. # Component: testsocket
  17. #####################################################
  18. # Description:
  19. # ------------
  20. # Cmake Input File for testsocket
  21. #####################################################
  22. project( testsocket )
  23. include_directories (
  24. ./../../system/jlib
  25. ./../../system/include
  26. ./../../system/security/securesocket
  27. ./../../fs/dafsclient
  28. )
  29. ADD_DEFINITIONS( -D_CONSOLE )
  30. set ( SRCS testsocket.cpp )
  31. HPCC_ADD_EXECUTABLE ( testsocket ${SRCS} )
  32. target_link_libraries ( testsocket
  33. jlib
  34. dafsclient
  35. )
  36. IF (USE_OPENSSL)
  37. target_link_libraries ( testsocket
  38. securesocket
  39. )
  40. ENDIF()
  41. install ( TARGETS testsocket RUNTIME DESTINATION ${EXEC_DIR} )
  42. if ( PLATFORM )
  43. install ( PROGRAMS testsocket.install DESTINATION etc/init.d/install COMPONENT Runtime )
  44. install ( PROGRAMS testsocket.uninstall DESTINATION etc/init.d/uninstall COMPONENT Runtime )
  45. endif()