Am 12. Mai 2016 00:00:12 MESZ, schrieb Tiago Macarios <tiagomacar...@gmail.com>: >Hi Attila, > >Thank you for your help. You are right, if I apply the following >modifications it works indeed: > >set( proj_HEADER > include/a.h >) > >add_library(proj SHARED ${proj_SOURCE} ${proj_HEADER}) > >But now I got a second question. Why is adding the header files >necessary? >(Sorry the possibly naive question) > >I thought that adding the header files to the target was an >anti-pattern ( >http://voices.canonical.com/jussi.pakkanen/2013/03/26/a-list-of-common-cmake-antipatterns/ >). Is it related to moc generating header files during the build? If so >why >is it not a problem when everything is on the same folder?
That same page has a Errata section at the end. -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake