diff --git a/src/Mod/Material/CMakeLists.txt b/src/Mod/Material/CMakeLists.txt index bf325f2803..1d8f096c55 100644 --- a/src/Mod/Material/CMakeLists.txt +++ b/src/Mod/Material/CMakeLists.txt @@ -13,6 +13,11 @@ SET(Material_SRCS ) SOURCE_GROUP("Module" FILES ${Material_SRCS}) +SET (MaterialTools_Files + materialtools/__init__.py + materialtools/cardutils.py +) + # collect all the material cards: #FILE( GLOB MaterialLib_Files ./StandardMaterial/*.FCMat ./StandardMaterial/*.txt ) @@ -53,6 +58,19 @@ fc_target_copy_resource(Material ${CMAKE_BINARY_DIR}/Mod/Material ${Material_SRCS}) + +ADD_CUSTOM_TARGET(MaterialToolsLib ALL + SOURCES ${MaterialTools_Files} +) + +fc_target_copy_resource(MaterialToolsLib + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/Mod/Material + ${MaterialTools_Files}) + +INSTALL(FILES ${MaterialTools_Files} DESTINATION Mod/Material/materialtools) + + IF (BUILD_GUI) fc_target_copy_resource(Material ${CMAKE_CURRENT_BINARY_DIR} diff --git a/src/Mod/Material/materialtools/__init__.py b/src/Mod/Material/materialtools/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/Mod/Material/materialtools/cardutils.py b/src/Mod/Material/materialtools/cardutils.py new file mode 100644 index 0000000000..c4be16f95f --- /dev/null +++ b/src/Mod/Material/materialtools/cardutils.py @@ -0,0 +1,25 @@ +# *************************************************************************** +# * Copyright (c) 2019 Bernd Hahnebach * +# * * +# * This program is free software; you can redistribute it and/or modify * +# * it under the terms of the GNU Lesser General Public License (LGPL) * +# * as published by the Free Software Foundation; either version 2 of * +# * the License, or (at your option) any later version. * +# * for detail see the LICENCE text file. * +# * * +# * This program is distributed in the hope that it will be useful, * +# * but WITHOUT ANY WARRANTY; without even the implied warranty of * +# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +# * GNU Library General Public License for more details. * +# * * +# * You should have received a copy of the GNU Library General Public * +# * License along with this program; if not, write to the Free Software * +# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * +# * USA * +# * * +# *************************************************************************** + +__title__ = "material cards utilities" +__author__ = "Bernd Hahnebach" +__url__ = "http://www.freecadweb.org" +