mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
This moves the generated files out of the source tree and into the build directory. They are now regenerated each time they are needed, based on the timestamp of the generated file compared to the timestamp of the lemon file. To do this, we also bundle lemon into the thirdparty directory and build it for ourselves since it is a very tiny program and not all platforms seem to distribute it in a consistent manner. Fixes https://gitlab.com/kicad/code/kicad/issues/5013
15 lines
423 B
CMake
15 lines
423 B
CMake
add_executable( lemon
|
|
lemon.c
|
|
)
|
|
|
|
# The location of the template file for lemon is passed as a property on the lemon target
|
|
define_property( TARGET
|
|
PROPERTY lemon_template
|
|
BRIEF_DOCS "Location of the template file for the lemon parser"
|
|
FULL_DOCS "Location of the template file for the lemon parser"
|
|
)
|
|
|
|
set_property( TARGET lemon
|
|
PROPERTY lemon_template ${CMAKE_CURRENT_SOURCE_DIR}/lempar.c
|
|
)
|