Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 3, 2009, 8:28:37 PM (15 years ago)
Author:
rgrieder
Message:

Added new CMake functions: ORXONOX_ADD_LIBRARY and ORXONOX_ADD_EXECUTABLE.
They replace the current functions ADD_LIBRARY and ADD_EXECUTABLE to allow for clearer and easier declaration.
And it allows for GCC precompiled header file support in the first place ;)
More information can be found in TargetUtilities.cmake

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pch/src/orxonox/CMakeLists.txt

    r3110 r3116  
    3030ADD_SUBDIRECTORY(objects)
    3131ADD_SUBDIRECTORY(overlays)
     32ADD_SUBDIRECTORY(sound)
    3233ADD_SUBDIRECTORY(tools)
    33 ADD_SUBDIRECTORY(sound)
    34 GET_ALL_HEADER_FILES(ORXONOX_HDR_FILES)
    35 SET(ORXONOX_FILES ${ORXONOX_SRC_FILES} ${ORXONOX_HDR_FILES})
    3634
    37 GENERATE_SOURCE_GROUPS(${ORXONOX_FILES})
    38 GENERATE_TOLUA_BINDINGS(Orxonox ORXONOX_FILES INPUTFILES gui/GUIManager.h objects/quest/QuestManager.h objects/quest/QuestDescription.h objects/pickup/PickupInventory.h objects/pickup/BaseItem.h)
     35ORXONOX_ADD_EXECUTABLE(orxonox
     36  FIND_HEADER_FILES
     37  TOLUA_FILES
     38    gui/GUIManager.h
     39    objects/pickup/BaseItem.h
     40    objects/pickup/PickupInventory.h
     41    objects/quest/QuestDescription.h
     42    objects/quest/QuestManager.h
     43  LINK_LIBRARIES
     44    ${OGRE_LIBRARY}
     45    ${CEGUI_LIBRARY}
     46    ${LUA_LIBRARIES}
     47    ${CEGUILUA_LIBRARY}
     48    ${Boost_SYSTEM_LIBRARY}
     49    ${OPENAL_LIBRARY}
     50    ${ALUT_LIBRARY}
     51    ${VORBISFILE_LIBRARY}
     52    ${VORBIS_LIBRARY}
     53    ${OGG_LIBRARY}
     54    ogreceguirenderer_orxonox
     55    tinyxml++_orxonox
     56    tolua++_orxonox
     57    bullet_orxonox
     58    util
     59    core
     60    network
     61  SOURCE_FILES ${ORXONOX_SRC_FILES}
     62)
    3963
    40 ADD_EXECUTABLE(orxonox ${ORXONOX_FILES})
    4164GET_TARGET_PROPERTY(_exec_loc orxonox LOCATION)
    4265GET_FILENAME_COMPONENT(_exec_name ${_exec_loc} NAME)
    4366SET(ORXONOX_EXECUTABLE_NAME ${_exec_name} CACHE INTERNAL "")
    44 
    45 TARGET_LINK_LIBRARIES(orxonox
    46   ${OGRE_LIBRARY}
    47   ${CEGUI_LIBRARY}
    48   ${LUA_LIBRARIES}
    49   ${CEGUILUA_LIBRARY}
    50   ${Boost_SYSTEM_LIBRARY}
    51   ${OPENAL_LIBRARY}
    52   ${ALUT_LIBRARY}
    53   ${VORBISFILE_LIBRARY}
    54   ${VORBIS_LIBRARY}
    55   ${OGG_LIBRARY}
    56   ogreceguirenderer_orxonox
    57   tinyxml++_orxonox
    58   tolua++_orxonox
    59   bullet_orxonox
    60   util
    61   core
    62   network
    63 )
    64 
    65 ORXONOX_INSTALL(orxonox)
    6667
    6768
Note: See TracChangeset for help on using the changeset viewer.