Riskybiz

cloneStream CMake

Jul 16th, 2019
417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 1.66 KB | None | 0 0
  1. # CMakeList.txt : Top-level CMake project file, do global configuration
  2. # and include sub-projects here.
  3. #
  4. cmake_minimum_required (VERSION 3.8)
  5.  
  6. project ("cloneStream")
  7.  
  8. # Locate dependencies
  9. find_package(Boost COMPONENTS serialization REQUIRED)
  10. message("Boost Include: ${Boost_INCLUDE_DIRS}")
  11. include_directories(SYSTEM PUBLIC ${Boost_INCLUDE_DIRS})
  12.  
  13. find_package(czmq CONFIG REQUIRED)
  14. message("CZMQ Include: ${czmq_DIR}")
  15.  
  16. # Include sub-projects.
  17. add_subdirectory ("certificateCreator")
  18. add_subdirectory ("cloneClient")
  19. add_subdirectory ("cloneOrigin")
  20. add_subdirectory ("cloneProxy")
  21.  
  22.  
  23. # CMakeList.txt : CMake project for clone_origin, include source and define
  24. # project specific logic here.
  25. #
  26. cmake_minimum_required (VERSION 3.8)
  27.  
  28. # Add source to this project's executable.
  29. add_executable (cloneOrigin "cloneOrigin.cpp" "origin.h" "preprocessorchecks")
  30. target_link_libraries(cloneOrigin PRIVATE czmq czmq-static ${Boost_LIBRARIES})
  31.  
  32.  
  33.  
  34. # CMakeList.txt : CMake project for clone_proxy, include source and define
  35. # project specific logic here.
  36. #
  37. cmake_minimum_required (VERSION 3.8)
  38.  
  39. # Add source to this project's executable.
  40. add_executable (cloneProxy "cloneProxy.cpp" "preprocessorchecks")
  41. target_link_libraries(cloneProxy PRIVATE czmq czmq-static)
  42.  
  43.  
  44.  
  45. # CMakeList.txt : CMake project for clone_client, include source and define
  46. # project specific logic here.
  47. #
  48. cmake_minimum_required (VERSION 3.8)
  49.  
  50. # Add source to this project's executable.
  51. add_executable (cloneClient "cloneClient.cpp" "client.h" "listener.h" "DataProcessingFunctor.h" "preprocessorchecks")
  52. target_link_libraries(cloneClient PRIVATE czmq czmq-static ${Boost_LIBRARIES})
Add Comment
Please, Sign In to add comment