Ticket #54583: patch-splinter-mlpyinstall.diff
File patch-splinter-mlpyinstall.diff, 3.0 KB (added by repagh (Rene van Paassen), 7 years ago) |
---|
-
CMakeLists.txt
old new target_link_libraries(${TEST} ${STATIC_L 223 223 # License file 224 224 install( 225 225 FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE 226 DESTINATION ${CMAKE_ CURRENT_BINARY_DIR}/splinter-matlab/226 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/SPLINTER/splinter-matlab/ 227 227 ) 228 228 # Matlab files (.m) 229 229 install( 230 230 DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/matlab 231 DESTINATION ${CMAKE_ CURRENT_BINARY_DIR}/splinter-matlab231 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/SPLINTER/splinter-matlab 232 232 ) 233 233 # Version file (used for deducing the name of the binary when loading it) 234 file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/splinter-matlab/version ${VERSION}) 234 file(WRITE splinter-matlab/version ${VERSION}) 235 install( 236 FILES ${CMAKE_CURRENT_BINARY_DIR}/splinter-matlab/version 237 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/SPLINTER/splinter-matlab) 238 235 239 install( 236 240 FILES include/cinterface/cinterface.h 237 DESTINATION ${CMAKE_ CURRENT_BINARY_DIR}/splinter-matlab/include241 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/SPLINTER/splinter-matlab/include 238 242 ) 239 243 install( 240 244 TARGETS ${SHARED_LIBRARY} 241 DESTINATION ${CMAKE_ CURRENT_BINARY_DIR}/splinter-matlab/lib/${OS_STRING}/${ARCH}245 DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/SPLINTER/splinter-matlab/lib/${OS_STRING}/${ARCH} 242 246 ) 243 247 244 248 # Make the directory structure expected by the Python interface 245 249 install( 246 250 FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE 247 DESTINATION ${CMAKE_ CURRENT_BINARY_DIR}/splinter-python/251 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/SPLINTER/splinter-python/ 248 252 ) 249 253 # Python files (.py) 250 254 install( 251 255 DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/python 252 DESTINATION ${CMAKE_ CURRENT_BINARY_DIR}/splinter-python256 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/SPLINTER/splinter-python 253 257 PATTERN "*.pyc" EXCLUDE 254 258 PATTERN "__pycache__*" EXCLUDE 255 259 ) 256 260 # Version file (used for deducing the name of the binary when loading it) 257 file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/splinter-python/version ${VERSION}) 261 file(WRITE splinter-python/version ${VERSION}) 262 install( 263 FILES ${CMAKE_CURRENT_BINARY_DIR}/splinter-python/version 264 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/SPLINTER/splinter-python) 265 266 install( 267 FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE 268 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/SPLINTER/splinter-python/ 269 ) 258 270 install( 259 271 FILES include/cinterface/cinterface.h 260 DESTINATION ${CMAKE_ CURRENT_BINARY_DIR}/splinter-python/include272 DESTINATION ${CMAKE_INSTALL_PREFIX}/include/SPLINTER/splinter-python/include 261 273 ) 262 274 install( 263 275 TARGETS ${SHARED_LIBRARY} 264 DESTINATION ${CMAKE_ CURRENT_BINARY_DIR}/splinter-python/lib/${OS_STRING}/${ARCH}276 DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/SPLINTER/splinter-python/lib/${OS_STRING}/${ARCH} 265 277 ) 266 278 267 279 # Install the header files (including Eigen) to the header directory