Link all libraries dynamically, when nvtt is linked dynamically.
This commit is contained in:
parent
dbfb36b812
commit
559bf61f4a
@ -1,4 +1,4 @@
|
|||||||
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.0)
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
|
||||||
PROJECT(NV)
|
PROJECT(NV)
|
||||||
ENABLE_TESTING()
|
ENABLE_TESTING()
|
||||||
|
|
||||||
@ -16,6 +16,13 @@ MESSAGE(STATUS "Setting optimal options")
|
|||||||
MESSAGE(STATUS " Processor: ${NV_SYSTEM_PROCESSOR}")
|
MESSAGE(STATUS " Processor: ${NV_SYSTEM_PROCESSOR}")
|
||||||
MESSAGE(STATUS " Compiler Flags: ${CMAKE_CXX_FLAGS}")
|
MESSAGE(STATUS " Compiler Flags: ${CMAKE_CXX_FLAGS}")
|
||||||
|
|
||||||
|
IF(NVTT_SHARED)
|
||||||
|
SET(NVCORE_SHARED TRUE)
|
||||||
|
SET(NVMATH_SHARED TRUE)
|
||||||
|
SET(NVIMAGE_SHARED TRUE)
|
||||||
|
ENDIF(NVTT_SHARED)
|
||||||
|
|
||||||
|
|
||||||
ADD_SUBDIRECTORY(src)
|
ADD_SUBDIRECTORY(src)
|
||||||
|
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
|
@ -2,6 +2,8 @@ NVIDIA Texture Tools version 2.0.5
|
|||||||
* Fix error in single color compressor. Fixes issue 66.
|
* Fix error in single color compressor. Fixes issue 66.
|
||||||
* Detect mismatch between CUDA runtime and driver, and disable CUDA in that case.
|
* Detect mismatch between CUDA runtime and driver, and disable CUDA in that case.
|
||||||
* Fix cmake files when compiling NVTT as a shared library.
|
* Fix cmake files when compiling NVTT as a shared library.
|
||||||
|
* When linking nvtt dynamically on unix, link all libraries dynamically.
|
||||||
|
* Merge fixes from trunk.
|
||||||
|
|
||||||
NVIDIA Texture Tools version 2.0.4
|
NVIDIA Texture Tools version 2.0.4
|
||||||
* Fix error in RGB format output; reported by jonsoh. See issue 49.
|
* Fix error in RGB format output; reported by jonsoh. See issue 49.
|
||||||
|
@ -28,6 +28,10 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
|||||||
# targets
|
# targets
|
||||||
ADD_DEFINITIONS(-DNVCORE_EXPORTS)
|
ADD_DEFINITIONS(-DNVCORE_EXPORTS)
|
||||||
|
|
||||||
|
IF(UNIX)
|
||||||
|
SET(LIBS ${LIBS} ${CMAKE_DL_LIBS})
|
||||||
|
ENDIF(UNIX)
|
||||||
|
|
||||||
IF(NVCORE_SHARED)
|
IF(NVCORE_SHARED)
|
||||||
ADD_LIBRARY(nvcore SHARED ${CORE_SRCS})
|
ADD_LIBRARY(nvcore SHARED ${CORE_SRCS})
|
||||||
ELSE(NVCORE_SHARED)
|
ELSE(NVCORE_SHARED)
|
||||||
|
Loading…
Reference in New Issue
Block a user