Move python module prefix and suffix properties into macro to be set together

This commit is contained in:
mdinger
2014-05-01 12:02:07 -04:00
committed by wmayer
parent e6278d56b9
commit 1498e99cef
45 changed files with 59 additions and 190 deletions

View File

@@ -129,10 +129,7 @@ fc_target_copy_resource(PartDesign
# See link for why this module is installed differently from the other modules:
# http://forum.freecadweb.org/viewtopic.php?f=19&t=5444
SET_BIN_DIR(PartDesign PartDesign /Mod/PartDesign /Mod/PartDesign)
if(WIN32)
set_target_properties(PartDesign PROPERTIES PREFIX "")
set_target_properties(PartDesign PROPERTIES SUFFIX ".pyd")
endif(WIN32)
SET_PYTHON_PREFIX_SUFFIX(PartDesign)
# The PartDesign module must go to where the __init__.py file is
INSTALL(TARGETS PartDesign DESTINATION Mod/PartDesign)

View File

@@ -191,10 +191,7 @@ fc_target_copy_resource(PartDesignGui
# See link for why this module is installed differently from the other modules:
# http://forum.freecadweb.org/viewtopic.php?f=19&t=5444
SET_BIN_DIR(PartDesignGui PartDesignGui /Mod/PartDesign /Mod/PartDesign)
if(WIN32)
set_target_properties(PartDesignGui PROPERTIES PREFIX "")
set_target_properties(PartDesignGui PROPERTIES SUFFIX ".pyd")
endif(WIN32)
SET_PYTHON_PREFIX_SUFFIX(PartDesignGui)
# The PartDesign module must go to where the __init__.py file is
INSTALL(TARGETS PartDesignGui DESTINATION Mod/PartDesign)