Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-9503

Exporting Mesos Cmake targets

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • cmake
    • None
    • OS: Dentos 7
      Mesos: github master
      build system: CMake & Ninja

    Description

      How to start new project with Mesos?
      I see only option is to inject my sources into Mesos sources.
      Why still Mesos targets are not exported ?
      I started with this and after some minor changes i stuck with grpc include directories problem...

      install(
              TARGETS mesos;process;mesos-protobufs;stout;boost;elfio;picojson;rapidjson;grpc
              EXPORT mesos-cmake
              ARCHIVE DESTINATION lib/
              LIBRARY DESTINATION lib/
              RUNTIME DESTINATION bin/
              INCLUDES DESTINATION include)
      
      #install(
      #        DIRECTORY ${PROJECT_SOURCE_DIR}/include/
      #        DESTINATION include
      #        FILES_MATCHING PATTERN "*.*hpp")
      
      install(
              EXPORT mesos-cmake
              FILE mesos-config.cmake
              NAMESPACE mesos::
      DESTINATION share/mesos/cmake)
      

      Goal:

      find_package(mesos 1.7.0 REQUIRED)
      add_executable(main main.cxx)
      target_link_libraries(main PRIVATE mesos::mesos)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Pwera Piotr Wera
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: