babb7e8df7
- faster and better BC3n compressor - add normal map flag to DDS files that store normal maps. - stop using RXGB fourcc code. - move tools to tools/ - add temptative config dialog for UI based tool. - add experimental normal map mipmap generation. - start adding support for input dds files in nvcompress. - many other small fixes and cleanup.
59 lines
1012 B
CMake
59 lines
1012 B
CMake
PROJECT(nvimage)
|
|
|
|
SUBDIRS(nvtt)
|
|
|
|
SET(IMAGE_SRCS
|
|
nvimage.h
|
|
FloatImage.h
|
|
FloatImage.cpp
|
|
Filter.h
|
|
Filter.cpp
|
|
Image.h
|
|
Image.cpp
|
|
ImageIO.h
|
|
ImageIO.cpp
|
|
ColorBlock.h
|
|
ColorBlock.cpp
|
|
BlockDXT.h
|
|
BlockDXT.cpp
|
|
HoleFilling.h
|
|
HoleFilling.cpp
|
|
DirectDrawSurface.h
|
|
DirectDrawSurface.cpp
|
|
Quantize.h
|
|
Quantize.cpp
|
|
NormalMap.h
|
|
NormalMap.cpp
|
|
NormalMipmap.h
|
|
NormalMipmap.cpp)
|
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
IF(PNG_FOUND)
|
|
SET(LIBS ${LIBS} ${PNG_LIBRARIES})
|
|
INCLUDE_DIRECTORIES(${PNG_INCLUDE_DIR})
|
|
ENDIF(PNG_FOUND)
|
|
|
|
IF(JPEG_FOUND)
|
|
SET(LIBS ${LIBS} ${JPEG_LIBRARIES})
|
|
INCLUDE_DIRECTORIES(${JPEG_INCLUDE_DIR})
|
|
ENDIF(JPEG_FOUND)
|
|
|
|
IF(TIFF_FOUND)
|
|
SET(LIBS ${LIBS} ${TIFF_LIBRARIES})
|
|
INCLUDE_DIRECTORIES(${TIFF_INCLUDE_DIR})
|
|
ENDIF(TIFF_FOUND)
|
|
|
|
# targets
|
|
ADD_DEFINITIONS(-DNVIMAGE_EXPORTS)
|
|
|
|
IF(NVIMAGE_SHARED)
|
|
ADD_LIBRARY(nvimage SHARED ${IMAGE_SRCS})
|
|
ELSE(NVIMAGE_SHARED)
|
|
ADD_LIBRARY(nvimage ${IMAGE_SRCS})
|
|
ENDIF(NVIMAGE_SHARED)
|
|
|
|
TARGET_LINK_LIBRARIES(nvimage ${LIBS} nvcore nvmath posh)
|
|
|
|
|