On Thursday 29 January 2009, Alexander Neundorf wrote: > On Thursday 29 January 2009, Daniele E. Domenichelli wrote: >> I have a small template library in c++ composed by ".h" files only and I >> want to use cmake to configure, find dependencies and install the >> library (compiling is not needed). >> >> This template library is in a bigger package with some other libraries >> that I install using "INSTALL TARGET" signature. >> >> I know I could use "INSTALL FILES", but I would like to use the same >> syntax ("INSTALL TARGET") for the first library, so I tried creating a >> new target, but with no results... Is there a way to do it? > > No. If you just have to install a set of files, use install(FILES). > If you didn't create a target using add_executable() or add_library(), you > can't use install(TARGETS) > Do you have some specific problem with install(FILES ) ?
Hi, Thanks for the answer. No, I don't have any specific problem with install(FILES), my problem was just because I'm installing all the other sublibrary of my project using install(TARGETS) and I was guessing if I could use the same syntax for all of them for easier maintenance... Regards, Daniele _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake