Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 30, 2009, 12:48:20 PM (15 years ago)
Author:
rgrieder
Message:

Replaced most of the ELSE(…) and ENDIF(…) with ELSE() and ENDIF(). Kept the shorter and the spreaded ones for better clarity since that's what it originally was thought for. But I can really pollute the code when having long conditions and lots of IFs.

Location:
code/branches/buildsystem2/src
Files:
11 edited

Legend:

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

    r2621 r2624  
    5454  IF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua/ceguilua-${CEGUI_VERSION})
    5555    MESSAGE(FATAL_ERROR "CEGUILua version not found in src folder. Update list of supported versions in LibraryConfig.cmake!")
    56   ENDIF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua/ceguilua-${CEGUI_VERSION})
     56  ENDIF()
    5757
    5858  INCLUDE_DIRECTORIES(ceguilua/ceguilua-${CEGUI_VERSION})
    5959  ADD_SUBDIRECTORY(ceguilua)
    60 ENDIF(CEGUILUA_USE_INTERNAL_LIBRARY)
     60ENDIF()
    6161
    6262ADD_SUBDIRECTORY(cpptcl)
  • code/branches/buildsystem2/src/ceguilua/CMakeLists.txt

    r2623 r2624  
    2121  IF(_compare_result EQUAL 1)
    2222    BREAK() # _version > CEGUI_VERSION
    23   ENDIF(_compare_result EQUAL 1)
     23  ENDIF()
    2424  ADD_SUBDIRECTORY(ceguilua-${_version})
    2525ENDFOREACH(_version)
     
    5353)
    5454
    55 IF (NOT WIN32)
     55IF(NOT WIN32)
    5656  INSTALL(TARGETS ceguilua_orxonox LIBRARY DESTINATION lib)
    57 ENDIF (NOT WIN32)
     57ENDIF()
  • code/branches/buildsystem2/src/core/CMakeLists.txt

    r2621 r2624  
    6464)
    6565
    66 IF (NOT WIN32)
     66IF(NOT WIN32)
    6767  INSTALL(TARGETS core LIBRARY DESTINATION lib)
    68 ENDIF (NOT WIN32)
     68ENDIF()
  • code/branches/buildsystem2/src/cpptcl/CMakeLists.txt

    r2622 r2624  
    1616IF(MSVC)
    1717  ADD_LIBRARY(cpptcl_orxonox STATIC ${CPPTCL_FILES})
    18 ELSE(MSVC)
     18ELSE()
    1919  ADD_LIBRARY(cpptcl_orxonox SHARED ${CPPTCL_FILES})
    20 ENDIF(MSVC)
     20ENDIF()
    2121
    2222TARGET_LINK_LIBRARIES(cpptcl_orxonox
     
    2424)
    2525
    26 IF (NOT WIN32)
     26IF(NOT WIN32)
    2727  INSTALL(TARGETS cpptcl_orxonox LIBRARY DESTINATION lib)
    28 ENDIF (NOT WIN32)
     28ENDIF()
  • code/branches/buildsystem2/src/network/CMakeLists.txt

    r2621 r2624  
    2222IF(MINGW)
    2323  ADD_LIBRARY(network ${NETWORK_FILES})
    24 ELSE(MINGW)
     24ELSE()
    2525  ADD_LIBRARY(network SHARED ${NETWORK_FILES})
    26 ENDIF(MINGW)
     26ENDIF()
    2727
    2828SET_TARGET_PROPERTIES(network PROPERTIES DEFINE_SYMBOL "NETWORK_SHARED_BUILD")
     
    3535)
    3636
    37 IF (NOT WIN32)
     37IF(NOT WIN32)
    3838  INSTALL(TARGETS network LIBRARY DESTINATION lib)
    39 ENDIF (NOT WIN32)
     39ENDIF()
    4040
    4141# build those parts only on request.
    4242IF(NETWORK_TESTING_ENABLED)
    4343  ##### test for gamestate stuff #####
    44   SET( TEST_SRC_FILES
     44  SET(TEST_SRC_FILES
    4545    ${NETWORK_SRC_FILES}
    4646  )
    4747  ADD_EXECUTABLE(networktest ${TEST_SRC_FILES})
    48   TARGET_LINK_LIBRARIES( networktest
     48  TARGET_LINK_LIBRARIES(networktest
    4949    ${OGRE_LIBRARY}
    5050    network
  • code/branches/buildsystem2/src/ogreceguirenderer/CMakeLists.txt

    r2621 r2624  
    1616  ${CEGUI_LIBRARY}
    1717)
    18 IF (NOT WIN32)
     18IF(NOT WIN32)
    1919  INSTALL(TARGETS ogreceguirenderer_orxonox LIBRARY DESTINATION lib)
    20 ENDIF (NOT WIN32)
     20ENDIF()
  • code/branches/buildsystem2/src/ois/CMakeLists.txt

    r2621 r2624  
    2929ELSEIF(UNIX)
    3030  ADD_SUBDIRECTORY(linux)
    31 ENDIF (WIN32)
     31ENDIF()
    3232
    3333GENERATE_SOURCE_GROUPS(${OIS_FILES})
     
    3636INCLUDE_DIRECTORIES(.)
    3737
    38 ADD_LIBRARY(ois_orxonox SHARED ${OIS_FILES} )
     38ADD_LIBRARY(ois_orxonox SHARED ${OIS_FILES})
    3939SET_TARGET_PROPERTIES(ois_orxonox PROPERTIES DEFINE_SYMBOL "OIS_NONCLIENT_BUILD")
    4040
    4141IF(WIN32)
    42   TARGET_LINK_LIBRARIES( ois_orxonox ${DIRECTX_LIBRARIES} )
    43 ENDIF(WIN32)
     42  TARGET_LINK_LIBRARIES(ois_orxonox ${DIRECTX_LIBRARIES})
     43ENDIF()
    4444
  • code/branches/buildsystem2/src/orxonox/CMakeLists.txt

    r2621 r2624  
    2727
    2828IF(NETWORKTRAFFIC_TESTING_ENABLED)
    29 
    3029  SET(ORXONOXS_SRC_FILES
    3130    GraphicsEngine.cc
     
    3332    CameraManager.cc
    3433  )
    35 
    3634  ADD_LIBRARY(orxonoxs SHARED ${ORXONOXS_SRC_FILES})
    3735ENDIF(NETWORKTRAFFIC_TESTING_ENABLED)
     
    6159  IF(CMAKE_CL_64)
    6260    SET(MSVC_PLATFORM "x64")
    63   ELSE(CMAKE_CL_64)
     61  ELSE()
    6462    SET(MSVC_PLATFORM "Win32")
    65   ENDIF(CMAKE_CL_64)
     63  ENDIF()
    6664  CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/orxonox.vcproj.user" "${CMAKE_CURRENT_BINARY_DIR}/orxonox.vcproj.user")
    6765ENDIF(MSVC)
    6866
    69 IF (NOT WIN32)
     67IF(NOT WIN32)
    7068  INSTALL(TARGETS orxonox RUNTIME DESTINATION bin)
    71 ENDIF (NOT WIN32)
     69ENDIF()
  • code/branches/buildsystem2/src/tinyxml/CMakeLists.txt

    r2621 r2624  
    1515IF(MSVC)
    1616  ADD_LIBRARY(tinyxml++_orxonox STATIC ${TINYXML++_FILES})
    17 ELSE(MSVC)
     17ELSE()
    1818  ADD_LIBRARY(tinyxml++_orxonox SHARED ${TINYXML++_FILES})
    19 ENDIF(MSVC)
     19ENDIF()
    2020
    21 IF (NOT WIN32)
     21IF(NOT WIN32)
    2222  INSTALL(TARGETS tinyxml++_orxonox LIBRARY DESTINATION lib)
    23 ENDIF (NOT WIN32)
     23ENDIF()
  • code/branches/buildsystem2/src/tolua/CMakeLists.txt

    r2621 r2624  
    1919TARGET_LINK_LIBRARIES(tolua++_orxonox ${LUA_LIBRARIES})
    2020
    21 IF (NOT WIN32)
     21IF(NOT WIN32)
    2222#  INSTALL(TARGETS tolualib_orxonox LIBRARY DESTINATION lib)
    23 ENDIF (NOT WIN32)
     23ENDIF()
    2424
    2525
  • code/branches/buildsystem2/src/util/CMakeLists.txt

    r2621 r2624  
    2323TARGET_LINK_LIBRARIES(util ${OGRE_LIBRARY})
    2424
    25 IF (NOT WIN32)
     25IF(NOT WIN32)
    2626  INSTALL(TARGETS util LIBRARY DESTINATION lib)
    27 ENDIF (NOT WIN32)
     27ENDIF()
Note: See TracChangeset for help on using the changeset viewer.