Ignore:
Timestamp:
Jul 29, 2010, 8:39:55 AM (14 years ago)
Author:
Torben Dannhauer
Message:

Moved memory leak detection from source file to headerfile. Its still in the class but at least not in the source file.

The leak detection works, but the false positives are not stopped.
Use Linux/Valgrind? to make your final leak detection beyond the easy first approach in MSVC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/CMakeLists.txt

    r86 r88  
    9595        ENDIF(USE_SKY_SILVERLINING)
    9696ENDIF(WIN32)
    97 
     97IF(CMAKE_COMPILER_IS_GNUCC)
     98       
     99        SET(USE_SKY_SILVERLINING ON CACHE BOOL "Enable to use Sundog-soft's Silverlining SDK for sky & weather")
     100        IF(USE_SKY_SILVERLINING )
     101                SET(SOURCES
     102                        ${SOURCES}
     103                        include/sky_Silverlining/skySilverLining_AtmosphereReference.h
     104                        include/sky_Silverlining/skySilverlining_cloudLayerSlot.h
     105                        include/sky_Silverlining/skySilverLining_cloudsDrawable.h
     106                        include/sky_Silverlining/skySilverLining_ProjectionMatrixCallback.h
     107                        include/sky_Silverlining/skySilverLining_skyDrawable.h
     108                        include/sky_Silverlining/visual_skySilverLining.h
     109                        src/sky_Silverlining/skySilverLining_cloudsDrawable.cpp
     110                        src/sky_Silverlining/skySilverLining_skyDrawable.cpp
     111                        src/sky_Silverlining/visual_skySilverLining.cpp                 
     112                )
     113               
     114                IF (DESTINATION_ARCH STREQUAL "x86")
     115                        SET(SILVERLINING_ARCH "win32")
     116                ELSEIF ( DESTINATION_ARCH STREQUAL "x64" )
     117                        SET(SILVERLINING_ARCH "x64")
     118                ENDIF ()
     119                SET(SILVERLINING_LIBRARY_RELEASE $ENV{SILVERLINING_PATH}\\lib\\vc9\\${SILVERLINING_ARCH}\\SilverLining-MT-DLL.lib CACHE FILEPATH "Select the release library of Sundog-Soft's Silverlining SDK to link against." )
     120                SET(SILVERLINING_LIBRARY_DEBUG $ENV{SILVERLINING_PATH}\\lib\\vc9\\${SILVERLINING_ARCH}\\SilverLining-MTD-DLL.lib CACHE FILEPATH "Select the debug library of Sundog-Soft's Silverlining SDK to link against." )
     121                SET(SILVERLINING_INCLUDE_DIR "$ENV{SILVERLINING_PATH}\\Public Headers" CACHE PATH "Enter the path to the the public Include directory of Sundog-Soft's Silverlining SDK" )
     122                SET(SILVERLINING_LICENSEE "Your user name" CACHE STRING "Enter your Silverlining licensee name. If you license available, osgVisual will work with silverlining as 5 minute demo with the default value." )
     123                SET(SILVERLINING_LICENSE "Your license code" CACHE STRING "Enter your Silverlining license key. If you license available, osgVisual will work with silverlining as 5 minute demo with the default value." )
     124                INCLUDE_DIRECTORIES(${SILVERLINING_INCLUDE_DIR} include/sky_Silverlining)
     125                ADD_DEFINITIONS( "-DUSE_SKY_SILVERLINING" )
     126                ADD_DEFINITIONS( "-DSILVERLINING_LICENSEE=\"${SILVERLINING_LICENSEE}\"" )
     127                ADD_DEFINITIONS( "-DSILVERLINING_LICENSE=\"${SILVERLINING_LICENSE}\"" )
     128               
     129        ELSE(USE_SKY_SILVERLINING)
     130                UNSET(SILVERLINING_LIBRARY_RELEASE CACHE)
     131                UNSET(SILVERLINING_LIBRARY_DEBUG CACHE)
     132                UNSET(SILVERLINING_INCLUDE_DIR CACHE)
     133                UNSET(SILVERLINING_LICENSEE)
     134                UNSET(SILVERLINING_LICENSE)
     135        ENDIF(USE_SKY_SILVERLINING)
     136ENDIF()
    98137
    99138# Module distortion
Note: See TracChangeset for help on using the changeset viewer.