Revision: 71661 http://sourceforge.net/p/brlcad/code/71661 Author: starseeker Date: 2018-09-05 21:41:00 +0000 (Wed, 05 Sep 2018) Log Message: ----------- Stub in some basic logic to run the 'conversion.sh' script on .g files. This won't be robust to things like multi-config builds - right now it's just a way to quickly run the script on individual files.
Modified Paths: -------------- brlcad/trunk/db/CMakeLists.txt Modified: brlcad/trunk/db/CMakeLists.txt =================================================================== --- brlcad/trunk/db/CMakeLists.txt 2018-09-05 20:37:27 UTC (rev 71660) +++ brlcad/trunk/db/CMakeLists.txt 2018-09-05 21:41:00 UTC (rev 71661) @@ -179,6 +179,26 @@ BRLCAD_ADDDATA(terra.dsp db) endif(BRLCAD_INSTALL_EXAMPLE_GEOMETRY) +if(SH_EXEC) + add_custom_target(convert) + set_target_properties(convert PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD 1) + set_target_properties(convert PROPERTIES FOLDER "BRL-CAD Conversion Tests") + + macro(Sh_Conversion_Test gfile depends_list) + add_custom_target(convert-${gfile} COMMAND ${SH_EXEC} ${CMAKE_SOURCE_DIR}/sh/conversion.sh GED=$<TARGET_FILE:mged> ${CMAKE_BINARY_DIR}/${DATA_DIR}/db/${gfile}) + set_target_properties(convert-${gfile} PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD 1) + set_target_properties(convert-${gfile} PROPERTIES FOLDER "BRL-CAD Conversion Tests") + add_dependencies(convert convert-${gfile}) + if(NOT "${depends_list}" STREQUAL "") + add_dependencies(convert-${gfile} ${depends_list}) + add_dependencies(convert ${depends_list}) + endif(NOT "${depends_list}" STREQUAL "") + endmacro(Sh_Conversion_Test) + + Sh_Conversion_Test(moss.g "mged") + Sh_Conversion_Test(boolean-ops.g "mged") +endif(SH_EXEC) + CMAKEFILES( ${G_BENCHMARK_MODELS} ${G_SAMPLE_MODELS} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits