Text archives Help
- From: abe@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r961 - trunk/SwigInterface
- Date: Sun, 26 Feb 2006 15:43:58 -0700 (MST)
Author: abe
Date: Sun Feb 26 15:43:58 2006
New Revision: 961
Modified:
trunk/SwigInterface/CMakeLists.txt
Log:
Added cmake command to copy manta.py into the lib/ directory after the build.
This allows PYTHONPATH to be set to "build directory"/lib when using the
python front end.
M SwigInterface/CMakeLists.txt
Modified: trunk/SwigInterface/CMakeLists.txt
==============================================================================
--- trunk/SwigInterface/CMakeLists.txt (original)
+++ trunk/SwigInterface/CMakeLists.txt Sun Feb 26 15:43:58 2006
@@ -34,9 +34,18 @@
${CMAKE_THREAD_LIBS_INIT}
${OPENGL_LIBRARIES}
${X11_LIBRARIES}
- util
-lm)
+# Copy the manta.py swig compiled object to the lib directory.
+ADD_CUSTOM_COMMAND(
+ TARGET _manta
+ POST_BUILD
+ COMMAND ${CMAKE_COMMAND}
+ ARGS -E copy ${CMAKE_CURRENT_BINARY_DIR}/manta.py
+ ${PROJECT_BINARY_DIR}/lib/manta.py
+ COMMENT "Copying manta.py to ${PROJECT_BINARY_DIR}/lib/manta.py"
+ )
+
############################################################
# Load a scene from a python script.
SET(SCENE_PYTHON 0 CACHE BOOL "Load a scene from a python script..")
@@ -55,4 +64,6 @@
util
-lm
)
+
+
ENDIF(SCENE_PYTHON)
- [MANTA] r961 - trunk/SwigInterface, abe, 02/26/2006
Archive powered by MHonArc 2.6.16.