Wednesday, 15 July 2015

c++ - How to install headers while no library is present (A header-only lib)? -


I have to include some headers ( .pp) in standard dir to compile someone How do I tell automake to install them? Generally I put this line in my Makefile.am :

  lib_LTLIBRARIES = libfoo.la libfoo_la_SOURCES = \ foo.cpp \ bar.cpp foo_includedir = $ ( Included) / Foo foo_include_HEADERS = \ foo.hpp \ bar.hpp \ ./config.h  

You can use Primary:

  Fooder = $ (included) / foo foo_DATA = foo.hpp bar.hpp ../config.h  

No comments:

Post a Comment