root/OpenSceneGraph/trunk/src/osgPlugins/png/CMakeLists.txt @ 10763

Revision 10763, 429 bytes (checked in by robert, 5 years ago)

Added OSG_CPP_EXCEPTIONS_AVAILABLE cmake option to enable optional build of plugins and examples that required C++ exceptions

  • Property svn:eol-style set to native
RevLine 
[6376]1INCLUDE_DIRECTORIES( ${PNG_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR} )
2
[10763]3IF(OSG_CPP_EXCEPTIONS_AVAILABLE)
4    ADD_DEFINITIONS(-DOSG_CPP_EXCEPTIONS_AVAILABLE)
5ENDIF()
[6379]6
[6376]7SET(TARGET_SRC ReaderWriterPNG.cpp )
[6417]8SET(TARGET_LIBRARIES_VARS PNG_LIBRARY ZLIB_LIBRARY )
[10763]9
10
[6376]11#### end var setup  ###
[6379]12SETUP_PLUGIN(png)
[6376]13
14IF(MSVC)
[7364]15    SET_TARGET_PROPERTIES("${TARGET_DEFAULT_PREFIX}${TARGET_NAME}" PROPERTIES LINK_FLAGS_DEBUG "/NODEFAULTLIB:MSVCRT")
[9998]16ENDIF()
[6376]17
Note: See TracBrowser for help on using the browser.