Changeset 49 for code/trunk
- Timestamp:
- Oct 12, 2007, 12:58:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/Tutorial/CMakeLists.txt
r44 r49 2 2 3 3 #force-set the compile on tardis machines, as default points to g++-3.3 4 # only run this test on a lunix/unix machine 4 5 IF (UNIX) 5 6 FIND_PROGRAM(UNAME_CMD "uname" 6 7 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) 7 11 EXECUTE_PROCESS( 8 12 COMMAND "${UNAME_CMD}" "-n" … … 12 16 #MESSAGE("Print: UNAME_RV ${UNAME_RV}") 13 17 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.") 16 19 ENDIF (NOT "${UNAME_RV}" STREQUAL "0") 17 # STRING(REGEX MATCH "tardis" UNAME_OV "${UNAME_OV}")20 # check wheter we are on a tardis machine 18 21 IF ("${UNAME_OV}" MATCHES "tardis") 19 22 SET (IS_TARDIS "tardis") 20 23 ENDIF ("${UNAME_OV}" MATCHES "tardis") 21 # MESSAGE("Print: UNAME_OV ${UNAME_OV}")24 # if on tardis change compiler 22 25 IF (IS_TARDIS) 23 26 MESSAGE("System is a TARDIS: Setting Compiler to g++-3.4.3") … … 26 29 ENDIF (UNIX) 27 30 31 # create a few variables to simplify life 28 32 SET(SRC_FILES src/main.cpp) 29 30 33 SET(INC_FILES src/ExampleApplication.h src/ExampleFrameListener.h src/ExampleLoadingBar.h) 31 34 … … 43 46 #Creates an executable 44 47 ADD_EXECUTABLE(main ${SRC_FILES} ${INC_FILES}) 45 #Links the executable against O gre48 #Links the executable against OGRE and OIS 46 49 TARGET_LINK_LIBRARIES(main ${OGRE_LIBRARIES} ${OIS_LIBRARIES}) 47 50 48 #Sets the install path49 INSTALL(TARGETS main DESTINATION bin)
Note: See TracChangeset
for help on using the changeset viewer.