mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-20 06:06:13 +00:00
Changed: Added tga2dds project if libsquish is found (s3tc dependency removed)
This commit is contained in:
parent
35d90877c2
commit
74f93cb05c
4 changed files with 16 additions and 55 deletions
|
@ -217,9 +217,7 @@ IF(WITH_SAMPLES)
|
|||
ENDIF(WITH_SAMPLES)
|
||||
|
||||
IF(WITH_TOOLS)
|
||||
IF(WIN32)
|
||||
FIND_PACKAGE(S3TC)
|
||||
ENDIF(WIN32)
|
||||
FIND_PACKAGE(Squish)
|
||||
ADD_SUBDIRECTORY(tools)
|
||||
ENDIF(WITH_TOOLS)
|
||||
|
||||
|
|
|
@ -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)
|
|
@ -40,11 +40,13 @@ IF(WITH_MAXPLUGIN)
|
|||
ENDIF(MAXSDK_FOUND)
|
||||
ENDIF(WITH_MAXPLUGIN)
|
||||
|
||||
IF(SQUISH_FOUND)
|
||||
ADD_SUBDIRECTORY(tga_2_dds)
|
||||
ENDIF(SQUISH_FOUND)
|
||||
|
||||
# These use WIndows-specific things that need to be fixed.
|
||||
#ig_elevation
|
||||
#lightmap_optimizer
|
||||
#object_viewer_exe
|
||||
#hls_bank_maker
|
||||
#s3tc_compressor_lib
|
||||
#tga_2_dds
|
||||
#plugin_max
|
||||
|
|
11
code/nel/tools/3d/tga_2_dds/CMakeLists.txt
Normal file
11
code/nel/tools/3d/tga_2_dds/CMakeLists.txt
Normal file
|
@ -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 a new issue