Changeset 14:f91496c7cf18 in verona for oRTP/CMakeLists.txt


Ignore:
Timestamp:
Dec 30, 2009 4:12:42 PM (3 years ago)
Author:
qutecom <>
Branch:
default
Message:

beginning of windows cmake port

File:
1 edited

Legend:

Unmodified
Added
Removed
  • oRTP/CMakeLists.txt

    r9 r14  
    2020 
    2121 
    22 find_library(HAVE_PTHREAD pthread) 
     22include(FindThreads) 
    2323 
    2424set(ORTP_MAJOR_VERSION __ZERO__) 
     
    3535set(VERSION ${ORTP_VERSION}) 
    3636 
    37 have_function(select seteuid socket) 
     37 
     38if(WIN32) 
     39        set(CMAKE_REQUIRED_LIBRARIES WS2_32.Lib) 
     40        set(CMAKE_REQUIRED_FLAGS /FIwinsock2.h) 
     41endif(WIN32) 
     42have_function(select socket) 
    3843 
    3944set(STDC_HEADERS true) 
     
    4348include_directories(include ${CMAKE_CURRENT_BINARY_DIR}) 
    4449add_library(ortp SHARED ${ORTP_SRC}) 
    45 target_link_libraries(ortp ssl crypto ${HAVE_PTHREAD}) 
     50target_link_libraries(ortp ssl crypto) 
    4651set_target_properties(ortp PROPERTIES VERSION ${ORTP_VERSION} SOVERSION ${ORTP_VERSION}) 
    4752 
Note: See TracChangeset for help on using the changeset viewer.