celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pepijn Noltes (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CELIX-417) Make Celix CMake target exportable
Date Mon, 20 Nov 2017 20:32:00 GMT
Pepijn Noltes created CELIX-417:
-----------------------------------

             Summary: Make Celix CMake target exportable 
                 Key: CELIX-417
                 URL: https://issues.apache.org/jira/browse/CELIX-417
             Project: Celix
          Issue Type: Improvement
            Reporter: Pepijn Noltes
            Assignee: Pepijn Noltes


Currently the advisable way to use CMake it to export targets and use the imported targets
in project using - in this case - Celix.

This would mean that if Celix export a target Celix::framework, the using project can add
the correct link libraries, include paths and even compile definitions by using target_link_libraries.
For example
target_link_libraries(foo PRIVATE Celix::framework)

This is also has many benefits for Celix:
 - easier in use.
 - more modern use of CMake.
- more modular use of CMake.
- no of almost no use of directories outside a target dir. 
- Celix examples can be used 1 on1 in project using Celix

For more info see: https://www.youtube.com/watch?v=bsXLMQ6WgIk





--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message