On Fri, 29 Jul 2016 08:50:13 -0400 Guillaume Dumont <dumont.guilla...@gmail.com> wrote:
> add_custom_command(OUTPUT foo.sqlite > MAIN_DEPENDENCY > foo.sql COMMAND "cat foo.sql | > sqlite3 -batch foo.sqlite") > > add_custom_target(foo_sqlite > DEPENDS foo.sqlite) Thanks, that helps. It works somehow. Minor issue, that the double quotes is not necessary. However, the target builds only if I explicitly say 'make foo_sqlite'. So far so good. Is there any way I can make it build if I just say 'make'? And, there are more then one sqlite database to build, how can I make the rule to be generic? Can I say *.sql, *.sqlite? Thanks, Levente -- 73 de HA5OGL Op.: Levente -- 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