Revision: 41248
http://brlcad.svn.sourceforge.net/brlcad/?rev=41248&view=rev
Author: starseeker
Date: 2010-11-04 21:22:46 +0000 (Thu, 04 Nov 2010)
Log Message:
-----------
For the BRL-CAD build, our use of CMAKE_LIBRARY_OUTPUT_DIRECTORY means we need
to stick the library files in a place tcl can see them in order to run 'in
build tree', which is needed for building other parts of BRL-CAD. Need to
think about this a little more and check it for building in isolation.
Modified Paths:
--------------
brlcad/branches/cmake/src/other/tcl/library/CMakeLists.txt
Modified: brlcad/branches/cmake/src/other/tcl/library/CMakeLists.txt
===================================================================
--- brlcad/branches/cmake/src/other/tcl/library/CMakeLists.txt 2010-11-04
15:21:15 UTC (rev 41247)
+++ brlcad/branches/cmake/src/other/tcl/library/CMakeLists.txt 2010-11-04
21:22:46 UTC (rev 41248)
@@ -1,5 +1,12 @@
#ADD_SUBDIRECTORY(tzdata)
+MACRO(TCL_SCRIPTS_BUILD files destination)
+ FOREACH(file ${${files}})
+ get_filename_component(filename ${file} NAME)
+ configure_file(${file}
${CMAKE_BINARY_DIR}/${destination}/${filename} COPYONLY)
+ ENDFOREACH(file ${${files}})
+ENDMACRO(TCL_SCRIPTS_BUILD)
+
SET(tcl_library_toplevel
auto.tcl
clock.tcl
@@ -13,18 +20,21 @@
tclIndex
)
INSTALL(FILES ${tcl_library_toplevel} DESTINATION
lib/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION})
+TCL_SCRIPTS_BUILD(tcl_library_toplevel
lib/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION})
SET(tcl_library_http1
http1.0/http.tcl
http1.0/pkgIndex.tcl
)
INSTALL(FILES ${tcl_library_http1} DESTINATION
lib/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}/http1.0)
+TCL_SCRIPTS_BUILD(tcl_library_http1
lib/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}/http1.0)
SET(tcl_library_opt04
opt/optparse.tcl
opt/pkgIndex.tcl
)
INSTALL(FILES ${tcl_library_opt04} DESTINATION
lib/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}/opt0.4)
+TCL_SCRIPTS_BUILD(tcl_library_opt04
lib/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}/opt0.4)
INSTALL(FILES http/http.tcl DESTINATION lib/tcl8/8.4 RENAME http-2.7.2.tm)
INSTALL(FILES platform/platform.tcl DESTINATION lib/tcl8/8.4 RENAME
platform-1.0.3.tm)
@@ -32,6 +42,12 @@
INSTALL(FILES msgcat/msgcat.tcl DESTINATION lib/tcl8/8.5 RENAME
msgcat-1.4.2.tm)
INSTALL(FILES tcltest/tcltest.tcl DESTINATION lib/tcl8/8.5 RENAME
tcltest-2.3.0.tm)
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/http/http.tcl
${CMAKE_BINARY_DIR}/lib/tcl8/8.4/http-2.7.2.tm COPYONLY)
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/platform/platform.tcl
${CMAKE_BINARY_DIR}/lib/tcl8/8.4/platform-1.0.3.tm COPYONLY)
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/platform/shell.tcl
${CMAKE_BINARY_DIR}/lib/tcl8/8.4/platform/shell-1.1.4.tm COPYONLY)
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/msgcat/msgcat.tcl
${CMAKE_BINARY_DIR}/lib/tcl8/8.5/msgcat-1.4.2.tm COPYONLY)
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/tcltest/tcltest.tcl
${CMAKE_BINARY_DIR}/lib/tcl8/8.5/tcltest-2.3.0.tm COPYONLY)
+
IF(NOT WIN32)
INSTALL(FILES ../unix/tclAppInit.c DESTINATION
lib/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION})
ELSE(NOT WIN32)
@@ -169,6 +185,7 @@
)
INSTALL(FILES ${tcl_msgs} DESTINATION
lib/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}/msgs)
+TCL_SCRIPTS_BUILD(tcl_msgs
lib/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}/msgs)
SET(tcl_encoding
encoding/ascii.enc
@@ -251,3 +268,4 @@
encoding/tis-620.enc
)
INSTALL(FILES ${tcl_encoding} DESTINATION
lib/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}/encoding)
+TCL_SCRIPTS_BUILD(tcl_encoding
lib/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}/encoding)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits