root/OpenSceneGraph/trunk/src/OpenThreads/sproc/CMakeLists.txt @ 9949

Revision 9949, 1.4 kB (checked in by robert, 5 years ago)

From Philip Lowman, "Here's the promised cleanup of the OSG's CMakeLists.txt files for the src/ folder. I'll submit the others separately.

Also, there was also a small bug in osgDB's CMakeLists.txt that was causing an error when I tested with CMake 2.4.4.

IF(${OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX} STREQUAL "quicktime")
was changed to
IF(OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX STREQUAL "quicktime")
"

Line 
1# This file should only be included when using Sproc
2
3SET(LIB_NAME OpenThreads)
4SET(LIB_PUBLIC_HEADERS ${OpenThreads_PUBLIC_HEADERS})
5
6ADD_LIBRARY(${LIB_NAME}
7    ${OPENTHREADS_USER_DEFINED_DYNAMIC_OR_STATIC}
8    ${LIB_PUBLIC_HEADERS}
9    SharedArena.c++
10    SharedArena.h
11    SprocBarrier.c++
12    SprocBarrierPrivateData.h
13    SprocCondition.c++
14    SprocConditionPrivateData.h
15    SprocMutex.c++
16    SprocMutexPrivateData.h
17    SprocThread.c++
18    SprocThreadPrivateActions.h
19    SprocThreadPrivateData.h
20    ../common/Version.cpp
21    ../common/Atomic.cpp
22)
23
24IF(OPENTHREADS_SONAMES)
25  SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES VERSION ${OPENTHREADS_VERSION} SOVERSION ${OPENTHREADS_SOVERSION})
26ENDIF()
27
28# Do we need to link against anything for Sproc?
29#TARGET_LINK_LIBRARIES(${LIB_NAME}
30#)
31
32# Since we're building different platforms binaries in
33# their respective directories, we need to set the
34# link directory so it can find this location.
35LINK_DIRECTORIES(
36    ${CMAKE_CURRENT_BINARY_DIR}
37)
38
39INSTALL(
40    TARGETS OpenThreads
41    ARCHIVE DESTINATION lib${LIB_POSTFIX} COMPONENT libopenthreads-dev
42    LIBRARY DESTINATION lib${LIB_POSTFIX} COMPONENT libopenthreads
43    RUNTIME DESTINATION bin COMPONENT libopenthreads
44)
45INSTALL(
46    FILES ${OpenThreads_PUBLIC_HEADERS}
47    DESTINATION include/OpenThreads
48    COMPONENT libopenthreads-dev
49)
50
51#commented out# INCLUDE(ModuleInstall OPTIONAL)
Note: See TracBrowser for help on using the browser.