]> granicus.if.org Git - gc/commit
Support header files installation in CMake script
authorVictor Romero <romerosanchezv@gmail.com>
Fri, 7 Jun 2019 06:34:27 +0000 (09:34 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 7 Jun 2019 06:34:27 +0000 (09:34 +0300)
commit97b9fd6c3f61079099557201b697e8f0af12b4ff
treeead5b6296de1582e3fe5a45f93a188d2e089d66f
parent6cc171b3fcc90da3761197a5dd03cce23c877360
Support header files installation in CMake script

Issue #281 (bdwgc).

Now, "cmake --target install" copies the public header files (to the
installation destination) unless -Dinstall_headers=OFF is passed to
cmake.

* CMakeLists.txt (install_headers): New option (on by default).
* CMakeLists.txt [install_headers] (include/gc.h, include/gc_backptr.h,
include/gc_config_macros.h, include/gc_gcj.h, include/gc_inline.h,
include/gc_mark.h, include/gc_pthread_redirects.h,
include/gc_tiny_fl.h, include/gc_typed.h, include/gc_version.h,
include/javaxfc.h, include/leak_detector.h): Specify install to
"include/gc" folder.
* CMakeLists.txt [install_headers && enable_cplusplus]
(include/gc_allocator.h, include/gc_cpp.h): Likewise.
* CMakeLists.txt [install_headers && enable_disclaim]
(include/gc_disclaim.h): Likewise.
* CMakeLists.txt [install_headers] (include/extra/gc.h): Specify
install to "include" folder.
* CMakeLists.txt [install_headers && enable_cplusplus]
(include/extra/gc_cpp.h): Likewise.
CMakeLists.txt