Files
create/src/Mod/Import/CMakeLists.txt
wmayer f84224bb43 Mod: Show regressions in shape colouring
This PR demonstrates the known regressions of the recently merged material branch:
* Changing the transparency after setting color per face will reset them
* The result of boolean operations or compound doesn't inherit the colour of its input objects
* If colour is set per face to a boolean operaton object then saving and restoring the file causes weird rendering behaviour
  because material binding is set to PER_PART but only a single colour is defined
* If a shape inside a part container has set colour per face then saving and restoring as STEP file causes weird rendering
behaviour for the same reason
* Shape binder or datum objects don't show the correct default shape colour
2024-04-09 22:13:42 +02:00

85 lines
1.6 KiB
CMake

add_subdirectory(App)
if(BUILD_GUI)
add_subdirectory(Gui)
endif(BUILD_GUI)
#IF (BUILD_GUI)
# PYSIDE_WRAP_RC(Import_QRC_SRCS Resources/Import.qrc)
#ENDIF (BUILD_GUI)
#ADD_CUSTOM_TARGET(ImportRC ALL
# SOURCES ${Import_QRC_SRCS}
#)
#IF (BUILD_GUI)
# fc_target_copy_resource(ImportRC
# ${CMAKE_CURRENT_BINARY_DIR}
# ${CMAKE_BINARY_DIR}/Mod/Import
# Import_rc.py)
#ENDIF (BUILD_GUI)
SET(DXF_Plate
DxfPlate/blocks10.rub
DxfPlate/blocks112.rub
DxfPlate/blocks114.rub
DxfPlate/classes14.rub
DxfPlate/entities0.rub
DxfPlate/entities12.rub
DxfPlate/entities14.rub
DxfPlate/header0.rub
DxfPlate/header12.rub
DxfPlate/header14.rub
DxfPlate/objects14.rub
DxfPlate/tables10.rub
DxfPlate/tables112.rub
DxfPlate/tables114.rub
DxfPlate/tables20.rub
DxfPlate/tables212.rub
DxfPlate/tables214.rub
)
set(Import_Scripts
Init.py
stepZ.py
)
if(BUILD_GUI)
list (APPEND Import_Scripts InitGui.py)
list (APPEND Import_Scripts TestImportGui.py)
endif(BUILD_GUI)
add_custom_target(ImportScripts ALL
SOURCES ${Import_Scripts} ${DXF_Plate}
)
fc_target_copy_resource(ImportScripts
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_BINARY_DIR}/Mod/Import
${Import_Scripts}
)
fc_target_copy_resource(ImportScripts
${CMAKE_SOURCE_DIR}/src/Mod/Import
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/Mod/Import
${DXF_Plate}
)
INSTALL(
FILES
${Import_Scripts}
#${Import_QRC_SRCS}
DESTINATION
Mod/Import
)
INSTALL(
DIRECTORY
DxfPlate
DESTINATION
${CMAKE_INSTALL_DATADIR}/Mod/Import
FILES_MATCHING
PATTERN "*.rub*"
)