Create and install CMake Config file for marble & astro libraries
ClosedPublic

Authored by kossebau on Aug 7 2016, 5:08 AM.

Details

Summary
  • use "Marble" and "Astro" as cmake target names, so 3rd-party lib users would do: find_package(Marble REQUIRED) find_package(Astro REQUIRED) target_link_libraries(foo Marble Astro) # include dirs imported by target
  • only install headers & cmake config files on unbundled platforms for now

Diff Detail

Repository
R34 Marble
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kossebau updated this revision to Diff 5709.Aug 7 2016, 5:08 AM
kossebau retitled this revision from to Create and install CMake Config file for marble & astro libraries.
kossebau updated this object.
nienhueser accepted this revision.Aug 7 2016, 7:07 AM
nienhueser edited edge metadata.

Lovely, that is much needed. Great work! I guess tools/version/update-version-number.py needs a minor tweak also to deal with variable name changes like GENERIC_LIB_VERSION => MARBLE_LIB_VERSION.

src/lib/marble/CMakeLists.txt
433

Reminds me we need to get rid of that flag.

This revision is now accepted and ready to land.Aug 7 2016, 7:07 AM
This revision was automatically updated to reflect the committed changes.

Lovely, that is much needed. Great work! I guess tools/version/update-version-number.py needs a minor tweak also to deal with variable name changes like GENERIC_LIB_VERSION => MARBLE_LIB_VERSION.

I see. Changed the commit to also tweak that.