Support of INSTALL target on Windows (VC++ and MinGW)

This commit is contained in:
wmayer
2012-02-17 21:41:00 +01:00
parent f0afa802d4
commit 837ddf5f38
52 changed files with 331 additions and 142 deletions

View File

@@ -23,7 +23,12 @@ SET(Assembly_SRCS
add_library(Assembly SHARED ${Assembly_SRCS})
target_link_libraries(Assembly ${Assembly_LIBS})
fc_copy_script("Mod/Assembly" "Assembly" Init.py)
fc_target_copy_resource(Assembly
${CMAKE_SOURCE_DIR}/src/Mod/Assembly
${CMAKE_BINARY_DIR}/Mod/Assembly
Init.py)
if(MSVC)
set_target_properties(Assembly PROPERTIES SUFFIX ".pyd")