Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes in / [30:20]


Ignore:
Location:
/code/branches/tutorial/Tutorial
Files:
4 added
8 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • /code/branches/tutorial/Tutorial/CMakeLists.txt

    r30 r20  
    1 PROJECT(Tutorial)
     1PROJECT (Tutorial)
    22
    3 SET(SRC_FILES src/main.cpp)
     3SET (MAIN_SRC main.cpp)
    44
    5 SET(INC_FILES src/ExampleApplication.h  src/ExampleFrameListener.h  src/ExampleLoadingBar.h)
     5ADD_EXECUTABLE (main ${MAIN_SRC})
    66
    7 #This sets where to look for "Find*.cmake" files
    8 SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
    9 #Performs the search and sets the variables
    10 FIND_PACKAGE(OGRE)
    11 FIND_PACKAGE(OIS)
     7# find OGRE
     8FIND_LIBRARY (OGRE_LIBS NAMES OGRE
     9  PATH /usr/lib /usr/local/lib /usr/pack/ogre-1.4.5-sd/i686-debian-linux3.1/lib/pkgconfig)
     10IF (OGRE_LIBS)
     11  TARGET_ADD_LIBRARY (main OGRE_LIBS)
     12  TARGET_LINK_LIBRARIES (main OGRE_LIBS)
     13ENDIF (OGRE_LIBS)
    1214
    13 #Sets the search paths for the linking
    14 LINK_DIRECTORIES(${OGRE_LIB_DIR} ${OIS_LIB_DIR})
    15 #Sets the search path for include files
    16 INCLUDE_DIRECTORIES(${OGRE_INCLUDE_DIR} ${OIS_INCLUDE_DIR})
     15# find OIS
     16FIND_LIBRARY (OIS_LIBS NAMES OIS
     17  PATH /usr/lib /usr/local/lib /usr/pack/ois-1.0-sd/i686-debian-linux3.1/lib/pkgconfig)
     18IF (OIS_LIBS)
     19  ADD_LIBRARY (OIS_LIBS)
     20  TARGET_LINK_LIBRARIES (main OIS_LIBS)
     21ENDIF (OIS_LIBS)
    1722
    18 #Creates an executable
    19 ADD_EXECUTABLE(build/main ${SRC_FILES} ${INC_FILES})
    20 #Links the executable against Ogre
    21 TARGET_LINK_LIBRARIES(build/main ${OGRE_LIBRARIES} ${OIS_LIBRARIES})
    22 
    23 #Sets the install path
    24 INSTALL(TARGETS build/main DESTINATION bin)
     23INCLUDE_DIRECTORIES (. /usr/pack/ois-1.0-sd/i686-debian-linux3.1/include /usr/pack/ogre-1.4.5-sd/i686-debian-linux3.1/include)
Note: See TracChangeset for help on using the changeset viewer.