Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 12, 2009, 9:41:17 AM (15 years ago)
Author:
rgrieder
Message:
  • Installation instructions for the config files (tcl scripts and ini files). This is temporary until we have config directory.
  • On windows, all DLLs from a precompiled package get installed too
  • added media folder with a CMakeLists.txt
  • media files get installed to media/ (Windows) or to /share/orxonox (Unix)
Location:
code/branches/buildsystem2/cmake
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem2/cmake/BuildConfig.cmake

    r2636 r2644  
    5555
    5656OPTION(EXTRA_WARNINGS "Enable some extra warnings (heavily pollutes the output)")
    57 
    58 # Specify media directory
    59 GET_FILENAME_COMPONENT(_media_path "${CMAKE_SOURCE_DIR}/../media" ABSOLUTE)
    60 SET(ORXONOX_MEDIA_DIRECTORY ${_media_path} CACHE PATH
    61     "Location of the media directory.")
    62 IF(NOT EXISTS ${ORXONOX_MEDIA_DIRECTORY})
    63   MESSAGE(STATUS "Warning: The media directory does not exist ${ORXONOX_MEDIA_DIRECTORY}")
    64 ENDIF()
    6557
    6658# More plugins: Plugin_BSPSceneManager, Plugin_OctreeSceneManager
  • code/branches/buildsystem2/cmake/LibraryConfig.cmake

    r2641 r2644  
    6060    ENDFOREACH(_file)
    6161  ENDIF()
     62
     63  # On Windows, DLLs have to be in the executable folder
     64  IF(WIN32)
     65    # When installing a debug version, we really can't know which libraries
     66    # are used in released mode because there might be deps of deps.
     67    INSTALL(DIRECTORY ${DEP_BINARY_DIR}/ DESTINATION bin CONFIGURATIONS Debug)
     68
     69    # Try to filter out all the debug libraries. If the regex doesn't do the
     70    # job anymore, simply adjust it.
     71    FILE(GLOB _dependencies_all "${DEP_BINARY_DIR}/*")
     72    FOREACH(_dep ${_dependencies_all})
     73      IF(NOT _dep MATCHES "_[Dd]\\.[a-zA-Z0-9+-]+$|-mt-gd-|^.*\\.pdb$")
     74        LIST(APPEND _dependencies_release "${_dep}")
     75      ENDIF()
     76    ENDFOREACH(_dep)
     77    INSTALL(FILES ${_dependencies_release} DESTINATION bin
     78            CONFIGURATIONS Release RelWithDebInfo MinSizeRel)
     79  ENDIF(WIN32)
    6280ENDIF(USE_DEPENDENCY_PACKAGE)
    6381
Note: See TracChangeset for help on using the changeset viewer.