Hi Robert,

I updated the CMakelist.txt of curl plugin to compile with the static library of curl.
I added the external dependency wldap32

I dont know if it worked before, but with visual C express 2008 i had to add it

Cheers,
Cedric

--
+33 (0) 6 63 20 03 56  Cedric Pinson mailto:[EMAIL PROTECTED] 
http://www.plopbyte.net


#this file is automatically generated 

OPTION(CURL_IS_STATIC "on if curl is a static lib " ON)
MARK_AS_ADVANCED(CURL_IS_STATIC)

IF(WIN32)
    SET(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} 
/NODEFAULTLIB:MSVCRT")
    IF(CURL_IS_STATIC)
        ADD_DEFINITIONS(-DCURL_STATICLIB)
        SET(TARGET_EXTERNAL_LIBRARIES ws2_32 winmm wldap32)
    ENDIF(CURL_IS_STATIC)
ENDIF(WIN32)

IF(ZLIB_FOUND)
    ADD_DEFINITIONS(-DUSE_ZLIB)
    INCLUDE_DIRECTORIES( ${CURL_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIR})
ELSE(ZLIB_FOUND)
    INCLUDE_DIRECTORIES( ${CURL_INCLUDE_DIRS} )
ENDIF(ZLIB_FOUND)


SET(TARGET_SRC 
    ReaderWriterCURL.cpp
)

SET(TARGET_H
    ReaderWriterCURL.h
)

IF(ZLIB_FOUND)
    SET(TARGET_LIBRARIES_VARS CURL_LIBRARY ZLIB_LIBRARY)
ELSE(ZLIB_FOUND)
    SET(TARGET_LIBRARIES_VARS CURL_LIBRARY )
ENDIF(ZLIB_FOUND)


#### end var setup  ###
SETUP_PLUGIN(curl)
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to