nvidia-texture-tools/src/bc6h/CMakeLists.txt

30 lines
531 B
CMake

PROJECT(bc6h)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
SET(BC6H_SRCS
bits.h
shapes_two.h
tile.h
zoh_utils.cpp
zoh_utils.h
zoh.cpp
zoh.h
zohone.cpp
zohtwo.cpp)
ADD_LIBRARY(bc6h STATIC ${BC6H_SRCS})
IF(NOT WIN32)
IF(CMAKE_COMPILER_IS_GNUCXX)
SET_TARGET_PROPERTIES(bc6h PROPERTIES COMPILE_FLAGS -fPIC)
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
ENDIF(NOT WIN32)
IF(INSTALL_BC6H)
INSTALL(TARGETS bc6h
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib/static)
ENDIF(INSTALL_BC6H)