Changeset dcd90b2 in nscp for CMakeLists.txt


Ignore:
Timestamp:
11/23/09 22:54:09 (3 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
9b3f53c
Parents:
858ecc1
Message:

Added back openssl now builds (and presumably the NRPEClient works with it haven't tested but will do after I get the NRPEListener up and running...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r1e0bbec rdcd90b2  
    4949ENDIF(WIN32) 
    5050 
     51SET(OPENSSL_INCLUDE_DIR ${OPENSSL_INCLUDE_DIR} CACHE PATH "Look for OPENSSL headers here") 
     52SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} CACHE PATH "Look for libraries here") 
     53 
     54FIND_PACKAGE(OpenSSL) 
     55if(OPENSSL_FOUND) 
     56  if(WIN32) 
     57    FIND_LIBRARY(LIB_EAY_DEBUG NAMES libeay32MDd libeay32) 
     58    FIND_LIBRARY(LIB_EAY_RELEASE NAMES libeay32MD libeay32) 
     59      IF(LIB_EAY_DEBUG AND LIB_EAY_RELEASE) 
     60         SET(OPENSSL_LIBRARIES ${OPENSSL_LIBRARIES} optimized ${LIB_EAY_RELEASE} debug ${LIB_EAY_DEBUG}) 
     61      ELSE(LIB_EAY_DEBUG AND LIB_EAY_RELEASE) 
     62    SET(OPENSSL_FOUND FALSE) 
     63         SET(OPENSSL_LIBRARIES NOTFOUND) 
     64         MESSAGE(STATUS "Could not find the debug and release version of openssl") 
     65      ENDIF(LIB_EAY_DEBUG AND LIB_EAY_RELEASE) 
     66  endif(WIN32) 
     67endif(OPENSSL_FOUND) 
     68 
     69if(OPENSSL_FOUND) 
     70  message(STATUS, "Found openssl: ${OPENSSL_LIBRARIES}") 
     71  SET(NSCP_GLOBAL_DEFINES ${NSCP_GLOBAL_DEFINES} -DUSE_SSL) 
     72else(OPENSSL_FOUND) 
     73  message(STATUS, "openssl NOT found (no ssl support)") 
     74endif(OPENSSL_FOUND) 
     75 
    5176FIND_PACKAGE(Boost COMPONENTS system filesystem thread REQUIRED) 
    5277 
     
    83108 
    84109 
    85 SET(NSCP_GLOBAL_DEFINES 
    86   -DUNICODE -D_UNICODE 
    87 ) 
     110SET(NSCP_GLOBAL_DEFINES ${NSCP_GLOBAL_DEFINES} -DUNICODE -D_UNICODE) 
    88111 
    89112IF(CMAKE_HOST_UNIX) 
Note: See TracChangeset for help on using the changeset viewer.