diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-12-28 20:25:00 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-12-28 20:25:00 +0100 |
commit | db0fcf9142f9ee7035370f832036c873d4c87168 (patch) | |
tree | a4062cdf2158362a0a431eb1806719e9f0975cb1 /app/lib/params/CMakeLists.txt | |
parent | ee016bcb70b5c380e03b5fd2c12b1baa504c3cc8 (diff) | |
parent | 09795a01ef859f072920de9df974d1b03b9ab9a4 (diff) |
Merge tag 'upstream/4.2.4a'
Upstream version 4.2.4a
Diffstat (limited to 'app/lib/params/CMakeLists.txt')
-rw-r--r-- | app/lib/params/CMakeLists.txt | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/app/lib/params/CMakeLists.txt b/app/lib/params/CMakeLists.txt index 7c5cc9a..1e87595 100644 --- a/app/lib/params/CMakeLists.txt +++ b/app/lib/params/CMakeLists.txt @@ -56,33 +56,6 @@ FOREACH(infileName ${inFiles}) SET(outFiles ${outFiles} "${outfile}") ENDFOREACH(infileName) -# create turnouts from NMRA definition file - -ADD_EXECUTABLE( nmra-to nmra-to.c ) -IF(NOT WIN32) - TARGET_LINK_LIBRARIES(nmra-to m) -ENDIF(NOT WIN32) -GET_TARGET_PROPERTY(nmra-to_EXE nmra-to LOCATION) - -# find all turnout files -FILE(GLOB inFiles RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/*.to") - -# define build commands for all struct files -FOREACH(infileName ${inFiles}) - # Generate output file name - STRING(REGEX REPLACE ".to\$" ".xtp" outfileName "${infileName}") - SET(outfile "${CMAKE_CURRENT_BINARY_DIR}/${outfileName}") - # Generate input file name - SET(infile "${CMAKE_CURRENT_SOURCE_DIR}/${infileName}") - # Custom command to do the processing - ADD_CUSTOM_COMMAND(OUTPUT "${outfile}" - COMMAND ${nmra-to_EXE} "${infile}" "${outfile}" - DEPENDS "${infile}" nmra-to - WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}") - # Finally remember the output file for dependencies - SET(outFiles ${outFiles} "${outfile}") -ENDFOREACH(infileName) - ADD_CUSTOM_TARGET(xtpfiles ALL DEPENDS ${outFiles}) |