summaryrefslogtreecommitdiff
path: root/app/lib/params/CMakeLists.txt
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-12-28 20:24:50 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-12-28 20:24:50 +0100
commit09795a01ef859f072920de9df974d1b03b9ab9a4 (patch)
tree4d05907fc37f1bd781e506f5e196f7435aeec0ab /app/lib/params/CMakeLists.txt
parent5b4163d8c76b03f0d31b09866aa4bd06b4d8d804 (diff)
New upstream version 4.2.4aupstream/4.2.4a
Diffstat (limited to 'app/lib/params/CMakeLists.txt')
-rw-r--r--app/lib/params/CMakeLists.txt27
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})