You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Till Toenshoff (JIRA)" <ji...@apache.org> on 2019/03/07 15:52:00 UTC

[jira] [Commented] (MESOS-9503) Exporting Mesos Cmake targets

    [ https://issues.apache.org/jira/browse/MESOS-9503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16786905#comment-16786905 ] 

Till Toenshoff commented on MESOS-9503:
---------------------------------------

Right now CMake is not in feature parity with Autotools - for doing what you aim for it seems more practical to install Mesos using an Autotools build and then develop against the installed base (lib/headers).

> 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
(v7.6.3#76005)