[ https://issues.apache.org/jira/browse/MESOS-9503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17149434#comment-17149434 ]
Andrei Sekretenko commented on MESOS-9503: ------------------------------------------ [~Pwera] Now that Mesos implements cmake install rules (in 1.11+), it is possible to install Mesos into a prefix and develop against the installed Mesos. Please refer to https://github.com/apache/mesos/blob/master/docs/cmake.md#installable-build An example of a code base that builds against Mesos installed in this way can be found here: https://github.com/dcos/dcos-mesos-modules/blob/00e67b4e355485effbef07f29d4d8d2fbb019cac/cmake/Dependencies.cmake#L45 > Exporting Mesos Cmake targets > ----------------------------- > > Key: MESOS-9503 > URL: https://issues.apache.org/jira/browse/MESOS-9503 > Project: Mesos > Issue Type: Wish > Components: cmake > Environment: OS: Dentos 7 > Mesos: github master > build system: CMake & Ninja > Reporter: Piotr Wera > Priority: Major > > 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... > {code:java} > 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) > {code} > Goal: > {code:java} > find_package(mesos 1.7.0 REQUIRED) > add_executable(main main.cxx) > target_link_libraries(main PRIVATE mesos::mesos) > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)