Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 12, 2009, 9:41:17 AM (16 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
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem2/CMakeLists.txt

    r2640 r2644  
    4242INCLUDE(BuildConfig)
    4343
     44# Configure media directory location and installation
     45ADD_SUBDIRECTORY(media)
     46
    4447# Creates the actual project
    4548ADD_SUBDIRECTORY(src)
    4649
    4750# Configure the binary output directory
    48 ADD_SUBDIRECTORY(bin-config)
     51ADD_SUBDIRECTORY(bin)
    4952
    5053# Last but not least: Try to make doxygen target
  • code/branches/buildsystem2/bin/CMakeLists.txt

    r2628 r2644  
    3636
    3737SET(WRITABLE_CONFIG_FILES
    38   orxonox.ini
    3938)
     39
     40# Not getting installed
     41SET(ORXONOX_INI orxonox.ini)
    4042
    4143IF(TARDIS)
     
    8688  CONFIGURE_FILES("${_file_name}" "${BUILD_CONFIGS}" TRUE)
    8789ENDFOREACH(_file_name)
    88 FOREACH(_file_name ${WRITABLE_CONFIG_FILES})
     90FOREACH(_file_name ${WRITABLE_CONFIG_FILES} ${ORXONOX_INI})
    8991  CONFIGURE_FILES("${_file_name}" "${BUILD_CONFIGS}" FALSE)
    9092ENDFOREACH(_file_name)
     93
     94
     95################ Installation #################
     96
     97# Not using collective call to allow configuration with CMake.
     98FOREACH(_file ${READ_ONLY_CONFIG_FILES} ${WRITABLE_CONFIG_FILES})
     99  IF(CMAKE_CONFIGURATION_TYPES)
     100    FOREACH(_configuration ${CMAKE_CONFIGURATION_TYPES})
     101      INSTALL(FILES ${CMAKE_BINARY_DIR}/bin/${_configuration}/${_file}
     102              DESTINATION bin CONFIGURATIONS ${_configuration})
     103    ENDFOREACH(_configuration)
     104  ELSE()
     105    INSTALL(FILES ${CMAKE_BINARY_DIR}/bin/${_file} DESTINATION bin)
     106  ENDIF()
     107ENDFOREACH(_file)
     108
    91109
    92110################ Run Scripts ##################
  • 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.