Changeset 5752 for code/trunk/src/CMakeLists.txt
- Timestamp:
- Sep 20, 2009, 2:58:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/CMakeLists.txt
r5744 r5752 69 69 ${VLD_INCLUDE_DIR} 70 70 71 # All library includes are prefixed with the path to avoid conflicts 72 ${CMAKE_CURRENT_SOURCE_DIR} 73 # Bullet headers really need the include directory 71 # All includes in "externals" should be prefixed with the path 72 # relative to "external" to avoid conflicts 73 ${CMAKE_CURRENT_SOURCE_DIR}/external 74 # Include directories needed even if only included by Orxonox 74 75 ${CMAKE_CURRENT_SOURCE_DIR}/external/bullet 75 # OIS headers need the root dir as well 76 ${CMAKE_CURRENT_SOURCE_DIR}/external/ois 76 77 77 # OrxonoxConfig.h 78 78 ${CMAKE_CURRENT_BINARY_DIR} 79 # Tolua bind files for Core80 ${CMAKE_CURRENT_BINARY_DIR}/libraries/core/${CMAKE_CFG_INTDIR}81 # Tolua bind files for Orxonox82 ${CMAKE_CURRENT_BINARY_DIR}/orxonox/${CMAKE_CFG_INTDIR}83 84 # Add the base directories for convenience85 ${CMAKE_CURRENT_SOURCE_DIR}/external86 ${CMAKE_CURRENT_SOURCE_DIR}/libraries87 ${CMAKE_CURRENT_SOURCE_DIR}/modules88 ${CMAKE_CURRENT_SOURCE_DIR}/orxonox89 79 ) 90 80 … … 93 83 ENDIF() 94 84 85 ################### Tolua Bind ################## 86 87 # Create directory because the tolua application doesn't work otherwise 88 IF(NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/toluabind/${CMAKE_CFG_INTDIR}) 89 FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/toluabind/${CMAKE_CFG_INTDIR}) 90 ENDIF() 91 92 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/toluabind/${CMAKE_CFG_INTDIR}) 93 95 94 ################ Sub Directories ################ 96 95 97 96 ADD_SUBDIRECTORY(external) 98 97 ADD_SUBDIRECTORY(libraries) 98 ADD_SUBDIRECTORY(orxonox) 99 99 ADD_SUBDIRECTORY(modules) 100 ADD_SUBDIRECTORY(orxonox)101 100 102 101 ################ Executable ################ 102 103 INCLUDE_DIRECTORIES( 104 ${CMAKE_CURRENT_SOURCE_DIR}/libraries 105 ${CMAKE_CURRENT_SOURCE_DIR}/orxonox 106 ) 103 107 104 108 # Translate argument … … 117 121 ) 118 122 123 # Get name to configure the run scripts 119 124 GET_TARGET_PROPERTY(_exec_loc orxonox-main LOCATION) 120 125 GET_FILENAME_COMPONENT(_exec_name ${_exec_loc} NAME)
Note: See TracChangeset
for help on using the changeset viewer.