Revision: 40476
http://brlcad.svn.sourceforge.net/brlcad/?rev=40476&view=rev
Author: starseeker
Date: 2010-09-05 22:03:38 +0000 (Sun, 05 Sep 2010)
Log Message:
-----------
Commit a CMake file for using asc2g to build and install the db models.
Appears to work in parallel, but I only have 2 CPUs here so needs more testing.
Modified Paths:
--------------
brlcad/branches/cmake/CMakeLists.txt
Added Paths:
-----------
brlcad/branches/cmake/db/CMakeLists.txt
Modified: brlcad/branches/cmake/CMakeLists.txt
===================================================================
--- brlcad/branches/cmake/CMakeLists.txt 2010-09-05 21:23:36 UTC (rev
40475)
+++ brlcad/branches/cmake/CMakeLists.txt 2010-09-05 22:03:38 UTC (rev
40476)
@@ -1144,6 +1144,7 @@
#ADD_SUBDIRECTORY(src/tclscripts)
ADD_SUBDIRECTORY(src/util)
ADD_SUBDIRECTORY(src/vdeck)
+ADD_SUBDIRECTORY(db)
# Now that everything is configured, print a summary of the build settings.
This is a bit complicated, but
# the basic idea is to print labels, "smart" spacers around those labels to
line everything up, and the
Added: brlcad/branches/cmake/db/CMakeLists.txt
===================================================================
--- brlcad/branches/cmake/db/CMakeLists.txt (rev 0)
+++ brlcad/branches/cmake/db/CMakeLists.txt 2010-09-05 22:03:38 UTC (rev
40476)
@@ -0,0 +1,51 @@
+SET(G_BENCHMARK_MODELS
+ bldg391.asc
+ m35.asc
+ moss.asc
+ sphflake.asc
+ star.asc
+ world.asc
+)
+
+SET(G_SAMPLE_MODELS
+ ${G_BENCHMARK_MODELS}
+ axis.asc
+ boolean-ops.asc
+ castle.asc
+ cornell.asc
+ cray.asc
+ crod.asc
+ cube.asc
+ demo.asc
+ galileo.asc
+ goliath.asc
+ havoc.asc
+ kman.asc
+ ktank.asc
+ lgt-test.asc
+ operators.asc
+ pic.asc
+ pinewood.asc
+ prim.asc
+ tank_car.asc
+ terra.asc
+ toyjeep.asc
+ truck.asc
+ wave.asc
+ woodsman.asc
+ xmp.asc
+)
+
+FOREACH(g_model ${G_SAMPLE_MODELS})
+ STRING(REGEX REPLACE "([0-9a-z]*).asc" "\\1" g_model_root "${g_model}")
+ ADD_CUSTOM_COMMAND(
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${g_model_root}.g
+ COMMAND asc2g ${CMAKE_CURRENT_SOURCE_DIR}/${g_model}
${CMAKE_CURRENT_BINARY_DIR}/${g_model_root}.g
+ DEPENDS asc2g
+ )
+ ADD_CUSTOM_TARGET(${g_model_root}.g ALL DEPENDS
${CMAKE_CURRENT_BINARY_DIR}/${g_model_root}.g)
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${g_model_root}.g DESTINATION
${BRLCAD_INSTALL_DATA_DIR}/db)
+ SET(BUILT_MODELS
"${BUILT_MODELS};${CMAKE_CURRENT_BINARY_DIR}/${g_model_root}.g")
+ENDFOREACH(g_model ${G_SAMPLE_MODELS})
+SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES
"${BUILT_MODELS}")
+INSTALL(FILES terra.dsp DESTINATION ${BRLCAD_INSTALL_DATA_DIR}/db)
Property changes on: brlcad/branches/cmake/db/CMakeLists.txt
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits