Changed: Added tga2dds project if libsquish is found (s3tc dependency removed)
parent
b99425d5eb
commit
c962ee318b
@ -1,50 +0,0 @@
|
|||||||
# - Locate S3TC library
|
|
||||||
# This module defines
|
|
||||||
# S3TC_LIBRARY, the library to link against
|
|
||||||
# S3TC_FOUND, if false, do not try to link to S3TC
|
|
||||||
# S3TC_INCLUDE_DIR, where to find headers.
|
|
||||||
|
|
||||||
IF(S3TC_LIBRARY AND S3TC_INCLUDE_DIR)
|
|
||||||
# in cache already
|
|
||||||
SET(S3TC_FIND_QUIETLY TRUE)
|
|
||||||
ENDIF(S3TC_LIBRARY AND S3TC_INCLUDE_DIR)
|
|
||||||
|
|
||||||
|
|
||||||
FIND_PATH(S3TC_INCLUDE_DIR
|
|
||||||
s3_intrf.h
|
|
||||||
PATHS
|
|
||||||
$ENV{S3TC_DIR}/include
|
|
||||||
/usr/local/include
|
|
||||||
/usr/include
|
|
||||||
/sw/include
|
|
||||||
/opt/local/include
|
|
||||||
/opt/csw/include
|
|
||||||
/opt/include
|
|
||||||
PATH_SUFFIXES S3TC
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(S3TC_LIBRARY
|
|
||||||
NAMES s3tc libs3tc
|
|
||||||
PATHS
|
|
||||||
$ENV{S3TC_DIR}/lib
|
|
||||||
/usr/local/lib
|
|
||||||
/usr/lib
|
|
||||||
/usr/local/X11R6/lib
|
|
||||||
/usr/X11R6/lib
|
|
||||||
/sw/lib
|
|
||||||
/opt/local/lib
|
|
||||||
/opt/csw/lib
|
|
||||||
/opt/lib
|
|
||||||
/usr/freeware/lib64
|
|
||||||
)
|
|
||||||
|
|
||||||
IF(S3TC_LIBRARY AND S3TC_INCLUDE_DIR)
|
|
||||||
SET(S3TC_FOUND "YES")
|
|
||||||
IF(NOT S3TC_FIND_QUIETLY)
|
|
||||||
MESSAGE(STATUS "Found S3TC: ${S3TC_LIBRARY}")
|
|
||||||
ENDIF(NOT S3TC_FIND_QUIETLY)
|
|
||||||
ELSE(S3TC_LIBRARY AND S3TC_INCLUDE_DIR)
|
|
||||||
IF(NOT S3TC_FIND_QUIETLY)
|
|
||||||
MESSAGE(STATUS "Warning: Unable to find S3TC!")
|
|
||||||
ENDIF(NOT S3TC_FIND_QUIETLY)
|
|
||||||
ENDIF(S3TC_LIBRARY AND S3TC_INCLUDE_DIR)
|
|
@ -0,0 +1,11 @@
|
|||||||
|
FILE(GLOB SRC *.cpp *.h ../s3tc_compressor_lib/*.cpp ../s3tc_compressor_lib/*.h)
|
||||||
|
|
||||||
|
ADD_EXECUTABLE(tga2dds ${SRC})
|
||||||
|
|
||||||
|
INCLUDE_DIRECTORIES(${SQUISH_INCLUDE_DIR})
|
||||||
|
|
||||||
|
TARGET_LINK_LIBRARIES(tga2dds ${PLATFORM_LINKFLAGS} ${SQUISH_LIBRARY} nelmisc nel3d)
|
||||||
|
NL_DEFAULT_PROPS(tga2dds "Tools, 3D: tga2dds")
|
||||||
|
NL_ADD_RUNTIME_FLAGS(tga2dds)
|
||||||
|
|
||||||
|
INSTALL(TARGETS tga2dds RUNTIME DESTINATION bin COMPONENT tools3d)
|
Loading…
Reference in New Issue