Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 49 for code/trunk


Ignore:
Timestamp:
Oct 12, 2007, 12:58:51 PM (17 years ago)
Author:
nicolasc
Message:

additional comments in CML

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/Tutorial/CMakeLists.txt

    r44 r49  
    22
    33#force-set the compile on tardis machines, as default points to g++-3.3
     4# only run this test on a lunix/unix machine
    45IF (UNIX)
    56  FIND_PROGRAM(UNAME_CMD "uname"
    67        PATHS "/usr/bin /bin")
     8  IF(NOT UNAME_CMD)
     9        MESSAGE("Unable to find uname. Tardis-Check cannot be done.")
     10  ENDIF(NOT UNAME_CMD)
    711  EXECUTE_PROCESS(
    812        COMMAND "${UNAME_CMD}" "-n"
     
    1216#MESSAGE("Print: UNAME_RV ${UNAME_RV}")
    1317  IF (NOT "${UNAME_RV}" STREQUAL "0")
    14         MESSAGE("ERROR: Unable to find uname. System cannot be marked as
    15         Tardis if needed.")
     18        MESSAGE("ERROR: uname terminated unclean.")
    1619  ENDIF (NOT "${UNAME_RV}" STREQUAL "0")
    17   #STRING(REGEX MATCH "tardis" UNAME_OV "${UNAME_OV}")
     20  # check wheter we are on a tardis machine
    1821  IF ("${UNAME_OV}" MATCHES "tardis")
    1922    SET (IS_TARDIS "tardis")
    2023  ENDIF ("${UNAME_OV}" MATCHES "tardis")
    21   #MESSAGE("Print: UNAME_OV ${UNAME_OV}")
     24  # if on tardis change compiler
    2225  IF (IS_TARDIS)
    2326  MESSAGE("System is a TARDIS: Setting Compiler to g++-3.4.3")
     
    2629ENDIF (UNIX)
    2730
     31# create a few variables to simplify life
    2832SET(SRC_FILES src/main.cpp)
    29 
    3033SET(INC_FILES src/ExampleApplication.h  src/ExampleFrameListener.h  src/ExampleLoadingBar.h)
    3134
     
    4346#Creates an executable
    4447ADD_EXECUTABLE(main ${SRC_FILES} ${INC_FILES})
    45 #Links the executable against Ogre
     48#Links the executable against OGRE and OIS
    4649TARGET_LINK_LIBRARIES(main ${OGRE_LIBRARIES} ${OIS_LIBRARIES})
    4750
    48 #Sets the install path
    49 INSTALL(TARGETS main DESTINATION bin)
Note: See TracChangeset for help on using the changeset viewer.