Support of INSTALL target on Windows (VC++ and MinGW)
This commit is contained in:
@@ -22,7 +22,12 @@ SET(Start_SRCS
|
||||
|
||||
add_library(Start SHARED ${Start_SRCS})
|
||||
target_link_libraries(Start ${Start_LIBS})
|
||||
fc_copy_script("Mod/Start" "Start" Init.py)
|
||||
|
||||
|
||||
fc_target_copy_resource(Start
|
||||
${CMAKE_SOURCE_DIR}/src/Mod/Start
|
||||
${CMAKE_BINARY_DIR}/Mod/Start
|
||||
Init.py)
|
||||
|
||||
if(MSVC)
|
||||
set_target_properties(Start PROPERTIES SUFFIX ".pyd")
|
||||
|
||||
@@ -27,8 +27,13 @@ SET(StartGui_SRCS
|
||||
Workbench.h
|
||||
)
|
||||
|
||||
SET(StartPage_Resources
|
||||
SET(StartPage_Scripts
|
||||
InitGui.py
|
||||
StartPage/StartPage.py
|
||||
StartPage/__init__.py
|
||||
)
|
||||
|
||||
SET(StartPage_Resources
|
||||
StartPage/PartDesign.py
|
||||
StartPage/ArchDesign.py
|
||||
StartPage/DefaultWorkbench.py
|
||||
@@ -38,7 +43,6 @@ SET(StartPage_Resources
|
||||
StartPage/LoadDrawingExample.py
|
||||
StartPage/LoadRobotExample.py
|
||||
StartPage/Background.jpg
|
||||
StartPage/__init__.py
|
||||
StartPage/FreeCAD.png
|
||||
StartPage/ArchDesign.png
|
||||
StartPage/PartDesign.png
|
||||
@@ -54,8 +58,16 @@ SET(StartPage_Resources
|
||||
|
||||
add_library(StartGui SHARED ${StartGui_SRCS})
|
||||
target_link_libraries(StartGui ${StartGui_LIBS})
|
||||
fc_copy_script("Mod/Start" "StartGui" InitGui.py)
|
||||
fc_copy_script("Mod/Start" "StartGui" ${StartPage_Resources})
|
||||
|
||||
fc_target_copy_resource(StartGui
|
||||
${CMAKE_SOURCE_DIR}/src/Mod/Start
|
||||
${CMAKE_BINARY_DIR}/Mod/Start
|
||||
${StartPage_Scripts})
|
||||
|
||||
fc_target_copy_resource(StartGui
|
||||
${CMAKE_SOURCE_DIR}/src/Mod/Start
|
||||
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/Mod/Start
|
||||
${StartPage_Resources})
|
||||
|
||||
if(MSVC)
|
||||
set_target_properties(StartGui PROPERTIES SUFFIX ".pyd")
|
||||
|
||||
@@ -26,7 +26,11 @@ SET(StartPage_DATA
|
||||
web.png
|
||||
)
|
||||
|
||||
INSTALL(FILES ${StartPage_SRCS} ${StartPage_DATA}
|
||||
INSTALL(FILES ${StartPage_SRCS}
|
||||
DESTINATION Mod/Start/StartPage
|
||||
)
|
||||
|
||||
INSTALL(FILES ${StartPage_DATA}
|
||||
DESTINATION ${CMAKE_INSTALL_DATADIR}/Mod/Start/StartPage
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user