Changeset 2651 for code/branches/buildsystem2/cmake
- Timestamp:
- Feb 12, 2009, 7:45:50 PM (16 years ago)
- Location:
- code/branches/buildsystem2/cmake
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem2/cmake/InstallUtilities.cmake
r2634 r2651 30 30 RUNTIME DESTINATION bin 31 31 LIBRARY DESTINATION lib 32 ARCHIVE DESTINATION lib32 #ARCHIVE DESTINATION lib 33 33 ) 34 34 ENDFUNCTION(ORXONOX_INSTALL) -
code/branches/buildsystem2/cmake/LibraryConfig.cmake
r2649 r2651 32 32 # There might already be an installation from another compiler 33 33 LIST(REMOVE_ITEM CMAKE_SYSTEM_PREFIX_PATH "${CMAKE_INSTALL_PREFIX}") 34 LIST(REMOVE_ITEM CMAKE_SYSTEM_LIBRARY_PATH "${CMAKE_INSTALL_PREFIX}/bin") 34 35 35 36 ############## Platform Scripts ################# … … 48 49 49 50 IF(USE_DEPENDENCY_PACKAGE) 50 IF(EXISTS ${CMAKE_SOURCE_DIR}/dependencies/include) 51 SET(DEPENDENCY_DIR "${CMAKE_SOURCE_DIR}/dependencies" CACHE PATH "") 52 ELSEIF(EXISTS ${CMAKE_SOURCE_DIR}/../dependencies/include) 53 SET(DEPENDENCY_DIR "${CMAKE_SOURCE_DIR}/../dependencies" CACHE PATH "") 54 ELSEIF(EXISTS ${CMAKE_SOURCE_DIR}/../lib_dist/dependencies/include) 55 SET(DEPENDENCY_DIR "${CMAKE_SOURCE_DIR}/../lib_dist/dependencies" CACHE PATH "") 56 ELSE() 51 FIND_PATH(DEPENDENCY_DIR 52 NAMES PackageConfigMSVC.cmake PackageConfigMinGW.cmake 53 PATHS 54 ${CMAKE_SOURCE_DIR}/dependencies 55 ${CMAKE_SOURCE_DIR}/../dependencies 56 ${CMAKE_SOURCE_DIR}/../lib_dist/dependencies 57 ) 58 IF(NOT DEPENDENCY_DIR) 57 59 MESSAGE(STATUS "Warning: Could not find dependency directory." 58 60 "Disable LIBRARY_USE_PACKAGE if you have none intalled.") 59 ENDIF() 60 IF(DEPENDENCY_DIR) 61 FILE(GLOB _package_config_files dependencies/PackageConfig*.cmake) 61 ELSE() 62 FILE(GLOB _package_config_files "${DEPENDENCY_DIR}/PackageConfig*.cmake") 62 63 FOREACH(_file ${_package_config_files}) 63 64 INCLUDE(${_file}) 64 65 ENDFOREACH(_file) 65 ENDIF()66 66 67 # On Windows, DLLs have to be in the executable folder68 IF(WIN32)69 # When installing a debug version, we really can't know which libraries70 # are used in released mode because there might be deps of deps.71 INSTALL(DIRECTORY ${DEP_BINARY_DIR}/ DESTINATION bin CONFIGURATIONS Debug)67 # On Windows, DLLs have to be in the executable folder 68 IF(DEP_BINARY_DIR AND WIN32) 69 # When installing a debug version, we really can't know which libraries 70 # are used in released mode because there might be deps of deps. 71 INSTALL(DIRECTORY ${DEP_BINARY_DIR}/ DESTINATION bin CONFIGURATIONS Debug) 72 72 73 # Try to filter out all the debug libraries. If the regex doesn't do the 74 # job anymore, simply adjust it. 75 FILE(GLOB _dependencies_all "${DEP_BINARY_DIR}/*") 76 FOREACH(_dep ${_dependencies_all}) 77 IF(NOT _dep MATCHES "_[Dd]\\.[a-zA-Z0-9+-]+$|-mt-gd-|^.*\\.pdb$") 78 LIST(APPEND _dependencies_release "${_dep}") 79 ENDIF() 80 ENDFOREACH(_dep) 81 INSTALL(FILES ${_dependencies_release} DESTINATION bin 82 CONFIGURATIONS Release RelWithDebInfo MinSizeRel) 83 ENDIF(WIN32) 73 # Try to filter out all the debug libraries. If the regex doesn't do the 74 # job anymore, simply adjust it. 75 FILE(GLOB _dependencies_all "${DEP_BINARY_DIR}/*") 76 FOREACH(_dep ${_dependencies_all}) 77 IF(NOT _dep MATCHES "_[Dd]\\.[a-zA-Z0-9+-]+$|-mt-gd-|^.*\\.pdb$") 78 LIST(APPEND _dependencies_release "${_dep}") 79 ENDIF() 80 ENDFOREACH(_dep) 81 INSTALL(FILES ${_dependencies_release} DESTINATION bin 82 CONFIGURATIONS Release RelWithDebInfo MinSizeRel) 83 ENDIF(DEP_BINARY_DIR AND WIN32) 84 ENDIF(NOT DEPENDENCY_DIR) 84 85 ENDIF(USE_DEPENDENCY_PACKAGE) 85 86
Note: See TracChangeset
for help on using the changeset viewer.