Fix INSTALL target in cmake files

This commit is contained in:
wmayer
2012-02-17 00:03:30 +01:00
parent c4122e059e
commit 905fb1a53f
4 changed files with 12 additions and 9 deletions

View File

@@ -105,7 +105,9 @@ elseif(MINGW)
else(MSVC)
set_target_properties(PartDesign PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Mod/PartDesign)
set_target_properties(PartDesign PROPERTIES PREFIX "")
set_target_properties(PartDesign PROPERTIES INSTALL_RPATH ${INSTALL_RPATH})
set_target_properties(PartDesign PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/Mod/PartDesign)
endif(MSVC)
INSTALL(TARGETS PartDesign DESTINATION lib)
# The PartDesign module must go to where the __init__.py file is
INSTALL(TARGETS PartDesign DESTINATION Mod/PartDesign)

View File

@@ -136,7 +136,9 @@ elseif(MINGW)
else(MSVC)
set_target_properties(PartDesignGui PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Mod/PartDesign)
set_target_properties(PartDesignGui PROPERTIES PREFIX "")
set_target_properties(PartDesignGui PROPERTIES INSTALL_RPATH ${INSTALL_RPATH})
set_target_properties(PartDesignGui PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/Mod/PartDesign)
endif(MSVC)
INSTALL(TARGETS PartDesignGui DESTINATION lib)
# The PartDesign module must go to where the __init__.py file is
INSTALL(TARGETS PartDesignGui DESTINATION Mod/PartDesign)