You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Gavin (JIRA)" <ji...@apache.org> on 2019/04/29 09:27:40 UTC

[jira] [Issue Comment Deleted] (MESOS-9503) Exporting Mesos Cmake targets

     [ https://issues.apache.org/jira/browse/MESOS-9503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gavin updated MESOS-9503:
-------------------------
    Comment: was deleted

(was: www.rtat.net)

> 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)