diff options
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}) |