Support of INSTALL target on Windows (VC++ and MinGW)
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user