Show
Ignore:
Timestamp:
04/19/10 15:44:42 (4 years ago)
Author:
robert
Message:

From Stephan Huber and Mathieu Marache, "attached you'll find framework support for os x via cmake. Please credit
Mathieu Marache, he added the last missing piece to this puzzle.

I think it is safe to commit these changes to trunk, as the traditional
way via dylibs should work as before.

Here's some more info how to get frameworks:

With these modifications it is possible to compile frameworks on OS X,
when you set the Cmake-option OSG_COMPILE_FRAMEWORKS to true. If you
want to embed the frameworks in your app-bundle make sure to set
OSG_COMPILE_FRAMEWORKS_INSTALL_NAME_DIR accordingly.

You'll have to build the install-target of the generated xcode-projects
as this sets the install_name_dirs of the frameworks and plugins."

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/OpenThreads/pthreads/CMakeLists.txt

    r11286 r11341  
    128128    RUNTIME DESTINATION bin COMPONENT libopenthreads 
    129129) 
    130 INSTALL( 
    131     FILES ${OpenThreads_PUBLIC_HEADERS} 
    132     DESTINATION include/OpenThreads 
    133     COMPONENT libopenthreads-dev 
     130 
     131IF(!OSG_COMPILE_FRAMEWORKS) 
     132   INSTALL( 
     133       FILES ${OpenThreads_PUBLIC_HEADERS} 
     134       DESTINATION include/OpenThreads 
     135       COMPONENT libopenthreads-dev 
    134136) 
    135137 
     138ELSE() 
     139    SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES 
     140         FRAMEWORK TRUE 
     141         FRAMEWORK_VERSION ${OPENTHREADS_VERSION} 
     142         PUBLIC_HEADER  "${OpenThreads_PUBLIC_HEADERS}" 
     143         INSTALL_NAME_DIR "${OSG_COMPILE_FRAMEWORKS_INSTALL_NAME_DIR}" 
     144    ) 
     145ENDIF() 
    136146#commented out# INCLUDE(ModuleInstall OPTIONAL)