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(Complete_SRCS
add_library(Complete SHARED ${Complete_SRCS})
target_link_libraries(Complete ${Complete_LIBS})
fc_copy_script("Mod/Complete" "Complete" Init.py)
fc_target_copy_resource(Complete
${CMAKE_SOURCE_DIR}/src/Mod/Complete
${CMAKE_BINARY_DIR}/Mod/Complete
Init.py)
if(MSVC)
set_target_properties(Complete PROPERTIES SUFFIX ".pyd")

View File

@@ -29,7 +29,12 @@ SET(CompleteGui_SRCS
add_library(CompleteGui SHARED ${CompleteGui_SRCS})
target_link_libraries(CompleteGui ${CompleteGui_LIBS})
fc_copy_script("Mod/Complete" "CompleteGui" InitGui.py)
fc_target_copy_resource(CompleteGui
${CMAKE_SOURCE_DIR}/src/Mod/Complete
${CMAKE_BINARY_DIR}/Mod/Complete
InitGui.py)
if(MSVC)
set_target_properties(CompleteGui PROPERTIES SUFFIX ".pyd")