Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8233


Ignore:
Timestamp:
Apr 12, 2011, 3:18:55 PM (14 years ago)
Author:
rgrieder
Message:

Removed config files from individual targets for MSVC because search results turn up 15 times or so.
Instead, added a new target 'config' (for MSVC only) that includes OrxonoxConfig.h and SpecialConfig.h.

Location:
code/branches/kicklib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/kicklib/cmake/tools/TargetUtilities.cmake

    r8080 r8233  
    5353 #    This function also installs the target!
    5454 #  Prerequisistes:
    55  #    ORXONOX_DEFAULT_LINK, ORXONOX_CONFIG_FILES, ORXONOX_CONFIG_FILES_GENERATED
     55 #    ORXONOX_DEFAULT_LINK
    5656 #  Parameters:
    5757 #    _target_name, ARGN for the macro arguments
     
    206206        SOURCE_GROUP("Config" FILES ${CMAKE_CURRENT_SOURCE_DIR}/${_arg_PCH_FILE})
    207207      ENDIF()
    208       # Also include all config files
    209       LIST(APPEND _${_target_name}_files ${ORXONOX_CONFIG_FILES} ${ORXONOX_CONFIG_FILES_GENERATED})
    210       # Add unprocessed config files to the 'Config' section
    211       SOURCE_GROUP("Config" FILES ${ORXONOX_CONFIG_FILES})
    212       # Add generated config files to the 'Generated' section
    213       SOURCE_GROUP("Generated" FILES ${ORXONOX_CONFIG_FILES_GENERATED})
    214208    ENDIF()
    215209  ENDIF()
  • code/branches/kicklib/src/OrxonoxConfig.cmake

    r8073 r8233  
    111111  ${CMAKE_CURRENT_BINARY_DIR}/SpecialConfig.h
    112112)
     113
     114# Make special target including the configured header files for Visual Studio
     115IF(MSVC)
     116  ADD_CUSTOM_TARGET(config
     117    SOURCES
     118      ${ORXONOX_CONFIG_FILES}
     119      ${ORXONOX_CONFIG_FILES_GENERATED}
     120  )
     121ENDIF()
Note: See TracChangeset for help on using the changeset viewer.