Changeset 103
- Timestamp:
- Jul 29, 2010, 9:39:24 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/CMakeLists.txt
r102 r103 24 24 #SET(CMAKE_MODULE_PATH "${osgVisual_SOURCE_DIR}/../CMakeModules;${CMAKE_MODULE_PATH}") 25 25 26 #INCLUDE( CheckTypeSize ) 27 #CHECK_TYPE_SIZE( "void*" SIZE_OF_VOID_P ) 26 # Check Architecture 28 27 IF( CMAKE_SIZEOF_VOID_P EQUAL 4 ) 29 28 MESSAGE( STATUS "32 bit architecture detected" ) … … 36 35 37 36 38 # Get OSG Settings37 # Get requiered packages 39 38 IF(DESTINATION_ARCH STREQUAL "x64") 40 39 SET(OSG_ROOT_BKP $ENV{OSG_ROOT}) # BACKUP old OSG_ROOT … … 45 44 FIND_PACKAGE(OpenSceneGraph 2.9.8 REQUIRED osgViewer OpenThreads osgDB osgTerrain osgGA osgText osgSim osgUtil) 46 45 FIND_PACKAGE(OpenGL REQUIRED) 46 IF(UNIX) 47 FIND_PACKAGE(PTHREAD REQUIRED) 48 ENDIF(UNIX) 49 50 51 47 52 48 53 IF(DESTINATION_ARCH STREQUAL "x64") … … 122 127 SET(SILVERLINING_LICENSEE "Your user name" CACHE STRING "Enter your Silverlining licensee name. If you license available, osgVisual will work with silverlining as 5 minute demo with the default value." ) 123 128 SET(SILVERLINING_LICENSE "Your license code" CACHE STRING "Enter your Silverlining license key. If you license available, osgVisual will work with silverlining as 5 minute demo with the default value." ) 124 INCLUDE_DIRECTORIES(${SILVERLINING_INCLUDE_DIR} include/sky_Silverlining)129 INCLUDE_DIRECTORIES(${SILVERLINING_INCLUDE_DIR} "include/sky_Silverlining" ${PTHREAD_INCLUDE_DIR} ) 125 130 ADD_DEFINITIONS( "-DUSE_SKY_SILVERLINING" ) 126 131 ADD_DEFINITIONS( "-DSILVERLINING_LICENSEE=\"${SILVERLINING_LICENSEE}\"" ) … … 348 353 349 354 # Linking 350 #IF(WIN32)351 # TARGET_LINK_LIBRARIES(osgVisual ${OPENSCENEGRAPH_LIBRARIES} "OpenGL32.lib")352 #ENDIF(WIN32)353 #IF(UNIX)354 # TARGET_LINK_LIBRARIES(osgVisual ${OPENSCENEGRAPH_LIBRARIES} "libGL.so")355 #ENDIF(UNIX)356 355 TARGET_LINK_LIBRARIES(osgVisual ${OPENSCENEGRAPH_LIBRARIES} ${OPENGL_LIBRARIES}) 357 356 358 357 359 358 IF(USE_SKY_SILVERLINING ) 360 TARGET_LINK_LIBRARIES(osgVisual "winmm.lib" debug ${SILVERLINING_LIBRARY_DEBUG} optimized ${SILVERLINING_LIBRARY_RELEASE}) 359 IF(WIN32) 360 TARGET_LINK_LIBRARIES(osgVisual "winmm.lib") 361 ENDIF(WIN32) 362 IF(UNIX) 363 TARGET_LINK_LIBRARIES(osgVisual ${PTHREAD_LIBRARIES}) 364 ENDIF(UNIX) 365 TARGET_LINK_LIBRARIES(osgVisual debug ${SILVERLINING_LIBRARY_DEBUG} optimized ${SILVERLINING_LIBRARY_RELEASE}) 361 366 ENDIF(USE_SKY_SILVERLINING) 362 367
Note: See TracChangeset
for help on using the changeset viewer.