I am trying to add some implicit rules to CMake that will generate direct dependencies (e.g. .c files from Bison.y files). How can I do that?
CMake uses custom commands for this. There is a wiki article here: http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_generate_a_source_file_during_the_build.3F
Alternatively, you can try the tutorial mentioned on my blog:
http://www.kitware.com/blog/home/post/7
(See step 5: http://www.cmake.org/cmake/help/cmake_tutorial.html#s5 )
-Bill
Source: https://habr.com/ru/post/1732669/More articles:How do we have a unit testing philosophy? - unit-testingMySQL: is there something like an internal record identifier for each record in a MySQL table? - mysqlDependency injection when you do not control creation and use - phphttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1732667/adding-an-active-css-class-to-navigation-with-jquery&usg=ALkJrhh64gL68chpW7kPu_EIhXnbMzsGzgRunning .NET 1.1 on Windows Azure - .netWhy doesn't my Perl program output anything to my file? - perlWhere can I find out how JavaScript-based inheritance works? - javascriptHow to keep Drupal up to date with the GitHub repo? - gitTrying to use C ++ in an application for iPhone - c ++How to get a CGI program to start when someone clicks a button? - perlAll Articles