Changeset 104 for osgVisual


Ignore:
Timestamp:
Jul 29, 2010, 9:55:22 PM (14 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/CMakeLists.txt

    r103 r104  
    4444FIND_PACKAGE(OpenSceneGraph 2.9.8 REQUIRED osgViewer OpenThreads osgDB osgTerrain osgGA osgText osgSim osgUtil)
    4545FIND_PACKAGE(OpenGL REQUIRED)
    46 IF(UNIX)
    47         FIND_PACKAGE(PTHREAD REQUIRED)
    48 ENDIF(UNIX)
    49 
    5046
    5147
     
    127123                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." )
    128124                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" )
    130126                ADD_DEFINITIONS( "-DUSE_SKY_SILVERLINING" )
    131127                ADD_DEFINITIONS( "-DSILVERLINING_LICENSEE=\"${SILVERLINING_LICENSEE}\"" )
     
    348344
    349345# Executable Output
    350 SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
     346SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)     # WIN32
     347SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin) # UNIX
    351348ADD_EXECUTABLE(osgVisual ${SOURCES})
    352349
     
    360357                TARGET_LINK_LIBRARIES(osgVisual "winmm.lib")
    361358        ENDIF(WIN32)
    362         IF(UNIX)
    363                 TARGET_LINK_LIBRARIES(osgVisual ${PTHREAD_LIBRARIES})
    364         ENDIF(UNIX)
    365359        TARGET_LINK_LIBRARIES(osgVisual debug ${SILVERLINING_LIBRARY_DEBUG} optimized ${SILVERLINING_LIBRARY_RELEASE})
    366360ENDIF(USE_SKY_SILVERLINING)
     
    370364ENDIF(USE_VISTA2D)
    371365
    372 IF(USE_CLUSTER_ENET)
     366IF(USE_CLUSTER_ENET AND WIN32)
    373367        TARGET_LINK_LIBRARIES(osgVisual "winmm.lib" "ws2_32.lib" )
    374 ENDIF(USE_CLUSTER_ENET)
     368ENDIF(USE_CLUSTER_ENET AND WIN32)
    375369
    376370# CMAKE Fix for VS to not prepend build type to path.
Note: See TracChangeset for help on using the changeset viewer.