Changeset 5649
- Timestamp:
- Aug 16, 2009, 4:21:01 PM (15 years ago)
- Location:
- code/branches/libraries
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/libraries/cmake/TargetUtilities.cmake
r5636 r5649 148 148 ENDIF() 149 149 150 # PLUGIN A 150 # PLUGIN A, always create shared libraries 151 151 IF(_arg_PLUGIN) 152 SET(_arg_SHARED MODULE)152 SET(_arg_SHARED SHARED) 153 153 SET(_arg_STATIC) 154 154 ENDIF() … … 165 165 # PLUGIN B 166 166 IF (_arg_PLUGIN) 167 SET_TARGET_PROPERTIES(${_target_name} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_PLUGIN_OUTPUT_DIRECTORY}) 167 SET_TARGET_PROPERTIES(${_target_name} PROPERTIES 168 RUNTIME_OUTPUT_DIRECTORY ${CMAKE_PLUGIN_OUTPUT_DIRECTORY} # Windows 169 LIBRARY_OUTPUT_DIRECTORY ${CMAKE_PLUGIN_OUTPUT_DIRECTORY} # Unix 170 ) 168 171 ADD_PLUGIN(${_target_name}) 169 172 ENDIF() … … 197 200 198 201 IF(NOT _arg_STATIC AND NOT _arg_NO_INSTALL) 199 SET(_library_destination ${ORXONOX_LIBRARY_INSTALL_PATH}) 200 IF (_arg_PLUGIN) 201 SET(_library_destination ${ORXONOX_PLUGIN_INSTALL_PATH}) 202 ENDIF() 203 204 INSTALL(TARGETS ${_target_name} 205 RUNTIME DESTINATION ${ORXONOX_RUNTIME_INSTALL_PATH} 206 LIBRARY DESTINATION ${_library_destination} 207 ) 202 IF(_arg_PLUGIN) 203 INSTALL(TARGETS ${_target_name} 204 RUNTIME DESTINATION ${ORXONOX_PLUGIN_INSTALL_PATH} 205 LIBRARY DESTINATION ${ORXONOX_PLUGIN_INSTALL_PATH} 206 ) 207 ELSE() 208 INSTALL(TARGETS ${_target_name} 209 RUNTIME DESTINATION ${ORXONOX_RUNTIME_INSTALL_PATH} 210 LIBRARY DESTINATION ${ORXONOX_LIBRARY_INSTALL_PATH} 211 ) 212 ENDIF() 208 213 ENDIF() 209 214 -
code/branches/libraries/src/core/Core.cc
r5647 r5649 282 282 boost::filesystem::path searchpath = this->configuration_->pluginPath_; 283 283 284 // Add that path to the PATH variable in case a plugin depends on another one 285 std::string pathVariable = getenv("PATH"); 286 putenv(("PATH=" + pathVariable + ";" + configuration_->pluginPath_.string()).c_str()); 287 284 288 boost::filesystem::directory_iterator file(searchpath); 285 289 boost::filesystem::directory_iterator end; -
code/branches/libraries/src/orxonox/CMakeLists.txt
r5648 r5649 31 31 ADD_SUBDIRECTORY(gamestates) 32 32 ADD_SUBDIRECTORY(interfaces) 33 ADD_SUBDIRECTORY(overlays) 33 34 ADD_SUBDIRECTORY(objects) 34 ADD_SUBDIRECTORY(overlays)35 35 ADD_SUBDIRECTORY(sound) 36 36 ADD_SUBDIRECTORY(tools)
Note: See TracChangeset
for help on using the changeset viewer.