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

@@ -29,7 +29,12 @@ set(Image_SRCS
add_library(Image SHARED ${Image_SRCS})
target_link_libraries(Image ${Image_LIBS})
fc_copy_script("Mod/Image" "Image" Init.py)
fc_target_copy_resource(Image
${CMAKE_SOURCE_DIR}/src/Mod/Image
${CMAKE_BINARY_DIR}/Mod/Image
Init.py)
if(MSVC)
set_target_properties(Image PROPERTIES SUFFIX ".pyd")

View File

@@ -54,7 +54,12 @@ SET(ImageGui_SRCS
add_library(ImageGui SHARED ${ImageGui_SRCS})
target_link_libraries(ImageGui ${ImageGui_LIBS})
fc_copy_script("Mod/Image" "ImageGui" InitGui.py)
fc_target_copy_resource(ImageGui
${CMAKE_SOURCE_DIR}/src/Mod/Image
${CMAKE_BINARY_DIR}/Mod/Image
InitGui.py)
if(MSVC)
set_target_properties(ImageGui PROPERTIES SUFFIX ".pyd")