- Timestamp:
- Jul 29, 2010, 9:55:22 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/CMakeLists.txt
r103 r104 44 44 FIND_PACKAGE(OpenSceneGraph 2.9.8 REQUIRED osgViewer OpenThreads osgDB osgTerrain osgGA osgText osgSim osgUtil) 45 45 FIND_PACKAGE(OpenGL REQUIRED) 46 IF(UNIX)47 FIND_PACKAGE(PTHREAD REQUIRED)48 ENDIF(UNIX)49 50 46 51 47 … … 127 123 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." ) 128 124 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." ) 129 INCLUDE_DIRECTORIES(${SILVERLINING_INCLUDE_DIR} "include/sky_Silverlining" ${PTHREAD_INCLUDE_DIR})125 INCLUDE_DIRECTORIES(${SILVERLINING_INCLUDE_DIR} "include/sky_Silverlining" ) 130 126 ADD_DEFINITIONS( "-DUSE_SKY_SILVERLINING" ) 131 127 ADD_DEFINITIONS( "-DSILVERLINING_LICENSEE=\"${SILVERLINING_LICENSEE}\"" ) … … 348 344 349 345 # Executable Output 350 SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin) 346 SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin) # WIN32 347 SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin) # UNIX 351 348 ADD_EXECUTABLE(osgVisual ${SOURCES}) 352 349 … … 360 357 TARGET_LINK_LIBRARIES(osgVisual "winmm.lib") 361 358 ENDIF(WIN32) 362 IF(UNIX)363 TARGET_LINK_LIBRARIES(osgVisual ${PTHREAD_LIBRARIES})364 ENDIF(UNIX)365 359 TARGET_LINK_LIBRARIES(osgVisual debug ${SILVERLINING_LIBRARY_DEBUG} optimized ${SILVERLINING_LIBRARY_RELEASE}) 366 360 ENDIF(USE_SKY_SILVERLINING) … … 370 364 ENDIF(USE_VISTA2D) 371 365 372 IF(USE_CLUSTER_ENET )366 IF(USE_CLUSTER_ENET AND WIN32) 373 367 TARGET_LINK_LIBRARIES(osgVisual "winmm.lib" "ws2_32.lib" ) 374 ENDIF(USE_CLUSTER_ENET )368 ENDIF(USE_CLUSTER_ENET AND WIN32) 375 369 376 370 # CMAKE Fix for VS to not prepend build type to path.
Note: See TracChangeset
for help on using the changeset viewer.