kicad/CMakeModules
Simon Richter c8c3e1f96a Fix build order for generated headers and sources
This changes make_lexer() so that it no longer generates a custom target
but instead attaches the generated files to an existing one (so the first
argument now is the name of an existing library or executable, and it needs
to come after the add_library/add_executable call).

The generated source is no longer listed in the project sources, as it is
added by the function. The files are generated in the build tree rather
than the source tree, and the directory is added to the include path for
the respective project as well as exported to projects linking against it.

Generated files in subdirectories are somewhat supported, but need to be
referenced with the same name as they were generated (i.e. including the
subdirectory name).

Fixes: lp:1831643
* https://bugs.launchpad.net/kicad/+bug/1831643

Fixes: lp:1832357
* https://bugs.launchpad.net/kicad/+bug/1832357

Fixes: lp:1833851
* https://bugs.launchpad.net/kicad/+bug/1833851
2019-07-03 09:36:40 -04:00
..
CMakeFindFrameworks.cmake * Added modified CMake FindPython... modules to support using Python-a-mingw-us distribution when building Windows scripting support using MinGW 2013-08-04 21:31:14 +01:00
CheckFindPackageResult.cmake CMake: 2008-05-05 18:23:24 +00:00
CreateGitVersionHeader.cmake Docs: add docset generation target 2018-12-03 10:14:15 -05:00
FindCairo.cmake Remove Boost library building and other build improvements. 2016-01-03 15:33:09 -05:00
FindGLEW.cmake Update FindGLEW.cmake 2017-07-28 11:30:22 +02:00
FindGLM.cmake Build configuration fixes. 2015-12-10 11:35:43 -05:00
FindGdiPlus.cmake 1) Add "rules" to base of tree for copying into BZR_HOME/rules. 2013-05-25 23:36:44 -05:00
FindOpenCASCADE.cmake OCC: Fix issues for OpenCascade 7.3 2018-06-12 10:03:13 -07:00
FindOpenSSL.cmake Restore FindOpenSSL.cmake, the cmake version does not work on MinGW. 2016-01-14 10:31:59 -05:00
FindPackageMessage.cmake Fix FindPackageHandleStandardArgs.cmake for differences between CMake 2 and 3. 2014-09-26 21:08:44 -04:00
FindPixman.cmake Copy and adapt FindCairo.cmake for Pixman 2017-02-01 19:22:47 -05:00
FindPythonInterp.cmake Improve CMake Python code 2018-10-19 09:59:06 +02:00
FindPythonLibs.cmake Improve CMake Python code 2018-10-19 09:59:06 +02:00
FindSWIG.cmake CMake: add FindSWIG.cmake from CMake 3.5 for swig 3.0 support. 2016-06-30 11:03:09 -04:00
FindZLIB.cmake.unused Remove minizip from kicad sources. Useless because now (and since a long time) wxWidgets supports full zip file read/write, and minizip build creates problems under Windows, due to zlib not always installed. 2011-09-07 20:41:35 +02:00
Findngspice.cmake Pl_editor: fix missing switch to "C" locale when saving selected items in clipboard. 2019-06-10 11:55:52 +02:00
FindwxPython.cmake Moved wxPython/Phoenix detection to a separate CMake module 2018-11-02 11:28:30 +01:00
FindwxWidgets.cmake Check required libraries in FindwxWidgets.cmake 2017-04-26 20:43:29 -04:00
Functions.cmake Fix build order for generated headers and sources 2019-07-03 09:36:40 -04:00
Html2C.cmake Eeschema: add dialog and utilities to create BOMs from generic netlist 2013-06-14 16:59:52 +02:00
KiCadQABuildUtils.cmake QA: Add build-time option to enable XML output from tests 2019-04-18 10:59:06 +01:00
KiCadVersion.cmake KiCadVersion.cmake: fix Kicad version id to 6.0.0, used when git is not available to calculate this version id 2019-05-02 09:10:57 +02:00
MinGWResourceCompiler.cmake Add CMAKE_RC_COMPILER variable to mingw_resource_compiler macro. 2008-09-07 12:34:27 +00:00
PNG2cpp.cmake Bitmaps: move bitmap defs to bitmaps library 2019-02-04 19:29:31 -08:00
PerformFeatureChecks.cmake CMake: use visibility definitions in provided by CMake when available. 2015-12-07 16:46:18 -05:00
SelectLibraryConfigurations.cmake * Added modified CMake FindPython... modules to support using Python-a-mingw-us distribution when building Windows scripting support using MinGW 2013-08-04 21:31:14 +01:00
TokenList2DsnLexer.cmake Fix build order for generated headers and sources 2019-07-03 09:36:40 -04:00
UsewxWidgets.cmake 1) Add "rules" to base of tree for copying into BZR_HOME/rules. 2013-05-25 23:36:44 -05:00
WriteVersionHeader.cmake Change how version strings are generated. 2018-02-16 11:45:58 -05:00
cmake_uninstall.cmake.in Add support for building *.deb file using CPack, install ~/fp-lib-table either from kicad-install.sh or from make install_user_configuration_files 2013-10-17 14:03:36 -05:00
config.h.cmake Generate PYTHONPATH from CMake information 2018-09-20 12:04:04 -07:00