summaryrefslogtreecommitdiff
path: root/app/lib/params/CMakeLists.txt
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2020-08-08 11:53:00 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2020-08-08 11:53:00 +0200
commitb623f5953691b2a0614e6f1f4def86bdbb9a4113 (patch)
tree18102bd36f7e22eb2ba2b9f880e4cb29346f4cb8 /app/lib/params/CMakeLists.txt
parent359b557176b9bb2ff1aed2082641eed39c358d0d (diff)
New upstream version 5.2.0Beta2.1upstream/5.2.0Beta2.1
Diffstat (limited to 'app/lib/params/CMakeLists.txt')
-rw-r--r--app/lib/params/CMakeLists.txt11
1 files changed, 4 insertions, 7 deletions
diff --git a/app/lib/params/CMakeLists.txt b/app/lib/params/CMakeLists.txt
index 1e87595..22229ac 100644
--- a/app/lib/params/CMakeLists.txt
+++ b/app/lib/params/CMakeLists.txt
@@ -3,7 +3,7 @@
#
# CMakeList for the params directory
#
-# Several xtp files are created from text definitions, all xtp files and the
+# Several xtp files are created from text definitions, all xtp files and the
# created xtp files are installed.
#
@@ -14,10 +14,9 @@ SET( outFiles )
# create param files from car definitions
ADD_EXECUTABLE( mkcarpart mkcarpart.c )
-GET_TARGET_PROPERTY(mkcarpart_EXE mkcarpart LOCATION)
FILE(GLOB inFiles RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/*.cars")
-
+
FOREACH(infileName ${inFiles})
# Generate output file name
STRING(REGEX REPLACE ".cars\$" ".xtp" outfileName "${infileName}")
@@ -26,7 +25,7 @@ FOREACH(infileName ${inFiles})
SET(infile "${CMAKE_CURRENT_SOURCE_DIR}/${infileName}")
# Custom command to do the processing
ADD_CUSTOM_COMMAND(OUTPUT "${outfile}"
- COMMAND ${mkcarpart_EXE} "${infile}" "${outfile}"
+ COMMAND mkcarpart "${infile}" "${outfile}"
DEPENDS "${infile}" mkcarpart
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")
# Finally remember the output file for dependencies
@@ -36,7 +35,6 @@ ENDFOREACH(infileName)
# create param files from structure definitions
ADD_EXECUTABLE( mkstruct mkstruct.c )
-GET_TARGET_PROPERTY(mkstruct_EXE mkstruct LOCATION)
FILE(GLOB inFiles RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/*.struct")
@@ -49,7 +47,7 @@ FOREACH(infileName ${inFiles})
SET(infile "${CMAKE_CURRENT_SOURCE_DIR}/${infileName}")
# Custom command to do the processing
ADD_CUSTOM_COMMAND(OUTPUT "${outfile}"
- COMMAND ${mkstruct_EXE} "${infile}" "${outfile}"
+ COMMAND mkstruct "${infile}" "${outfile}"
DEPENDS "${infile}" mkstruct
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" )
# Finally remember the output file for dependencies
@@ -63,4 +61,3 @@ INSTALL(
FILES ${XTP_FILES} t-trak-notes.txt ${outFiles}
DESTINATION ${XTRKCAD_SHARE_INSTALL_DIR}/params
)
-