root/OpenSceneGraph/trunk/src/osgPlugins/curl/CMakeLists.txt @ 9998

Revision 9998, 0.8 kB (checked in by robert, 6 years ago)

From Philip Lowman, clean up of CMake files

RevLine 
[7981]1#this file is automatically generated
2
[8151]3OPTION(CURL_IS_STATIC "on if curl is a static lib " ON)
4MARK_AS_ADVANCED(CURL_IS_STATIC)
5
[8078]6IF(WIN32)
7    SET(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} /NODEFAULTLIB:MSVCRT")
[8151]8    IF(CURL_IS_STATIC)
9        ADD_DEFINITIONS(-DCURL_STATICLIB)
[9282]10        SET(TARGET_EXTERNAL_LIBRARIES ws2_32 winmm wldap32)
[9998]11    ENDIF()
12ENDIF()
[8078]13
[9025]14IF(ZLIB_FOUND)
15    ADD_DEFINITIONS(-DUSE_ZLIB)
[9033]16    INCLUDE_DIRECTORIES( ${CURL_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIR})
[9998]17ELSE()
[9025]18    INCLUDE_DIRECTORIES( ${CURL_INCLUDE_DIRS} )
[9998]19ENDIF()
[7997]20
[9025]21
[8325]22SET(TARGET_SRC
23    ReaderWriterCURL.cpp
24)
[7981]25
[8325]26SET(TARGET_H
27    ReaderWriterCURL.h
28)
29
[9025]30IF(ZLIB_FOUND)
31    SET(TARGET_LIBRARIES_VARS CURL_LIBRARY ZLIB_LIBRARY)
[9998]32ELSE()
[9025]33    SET(TARGET_LIBRARIES_VARS CURL_LIBRARY )
[9998]34ENDIF()
[7981]35
[8151]36
[7981]37#### end var setup  ###
38SETUP_PLUGIN(curl)
Note: See TracBrowser for help on using the browser.