Changeset 6587

Show
Ignore:
Timestamp:
05/02/07 20:06:15
Author:
robert
Message:

Added CMakeLists.txt for the src/OpenThreads directory

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • OpenThreads/trunk/CMakeLists.txt

    r6585 r6587  
    7878FIND_PACKAGE(Threads) 
    7979 
    80 # Do we have sproc? 
    81 IF(CMAKE_SYSTEM MATCHES IRIX) 
    82     IF(CMAKE_USE_SPROC_INIT) 
    83         # In this case, only Sproc exists, so no option. 
    84         SET(OPENTHREADS_USE_SPROC_INSTEAD_OF_PTHREADS 1) 
    85     ELSE(CMAKE_USE_SPROC_INIT) 
    86         IF(CMAKE_HAVE_SPROC_H) 
    87             OPTION(OPENTHREADS_USE_SPROC_INSTEAD_OF_PTHREADS "Set to ON to build OpenThreads against sproc instead of pthreads" OFF) 
    88         ENDIF(CMAKE_HAVE_SPROC_H) 
    89     ENDIF(CMAKE_USE_SPROC_INIT) 
    90 ENDIF(CMAKE_SYSTEM MATCHES IRIX) 
    91  
    92 # Maybe we should be using the FindThreads.cmake module? 
    93 IF(WIN32) 
    94     # So I think Cygwin wants to use pthreads 
    95     IF(CYGWIN) 
    96         SUBDIRS(src/OpenThreads/pthreads examples) 
    97     ELSE(CYGWIN) 
    98         # Everybody else including Msys should probably go here 
    99         SUBDIRS(src/OpenThreads/win32)  
    100         # examples) 
    101     ENDIF(CYGWIN) 
    102 ELSE(WIN32) 
    103     IF(UNIX) 
    104         IF(OPENTHREADS_USE_SPROC_INSTEAD_OF_PTHREADS) 
    105             SUBDIRS(src/OpenThreads/sproc examples) 
    106         ELSE(OPENTHREADS_USE_SPROC_INSTEAD_OF_PTHREADS) 
    107             SUBDIRS(src/OpenThreads/pthreads examples) 
    108         ENDIF(OPENTHREADS_USE_SPROC_INSTEAD_OF_PTHREADS) 
    109     ELSE(UNIX) 
    110         MESSAGE("Sorry, OpenThreads may not support your platform") 
    111     ENDIF(UNIX) 
    112 ENDIF(WIN32) 
    113  
     80SUBDIRS(src/OpenThreads examples) 
    11481 
    11582# FIXME: Make optional install test programs