Changeset 5649 for code/branches/libraries/cmake
- Timestamp:
- Aug 16, 2009, 4:21:01 PM (15 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.