Only compile the files from squish that are really needed.
This commit is contained in:
parent
2307416b07
commit
207bfe5336
@ -4,10 +4,10 @@ ENABLE_TESTING()
|
|||||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
||||||
SET(SQUISH_SRCS
|
SET(SQUISH_SRCS
|
||||||
alpha.cpp
|
# alpha.cpp
|
||||||
alpha.h
|
# alpha.h
|
||||||
clusterfit.cpp
|
# clusterfit.cpp
|
||||||
clusterfit.h
|
# clusterfit.h
|
||||||
fastclusterfit.cpp
|
fastclusterfit.cpp
|
||||||
fastclusterfit.h
|
fastclusterfit.h
|
||||||
weightedclusterfit.cpp
|
weightedclusterfit.cpp
|
||||||
@ -21,13 +21,13 @@ SET(SQUISH_SRCS
|
|||||||
config.h
|
config.h
|
||||||
maths.cpp
|
maths.cpp
|
||||||
maths.h
|
maths.h
|
||||||
rangefit.cpp
|
# rangefit.cpp
|
||||||
rangefit.h
|
# rangefit.h
|
||||||
singlecolourfit.cpp
|
# singlecolourfit.cpp
|
||||||
singlecolourfit.h
|
# singlecolourfit.h
|
||||||
singlecolourlookup.inl
|
# singlecolourlookup.inl
|
||||||
squish.cpp
|
# squish.cpp
|
||||||
squish.h
|
# squish.h
|
||||||
simd.h
|
simd.h
|
||||||
simd_sse.h
|
simd_sse.h
|
||||||
simd_ve.h)
|
simd_ve.h)
|
||||||
@ -35,18 +35,18 @@ SET(SQUISH_SRCS
|
|||||||
ADD_LIBRARY(squish STATIC ${SQUISH_SRCS})
|
ADD_LIBRARY(squish STATIC ${SQUISH_SRCS})
|
||||||
|
|
||||||
# libpng
|
# libpng
|
||||||
FIND_PACKAGE(PNG)
|
#FIND_PACKAGE(PNG)
|
||||||
|
|
||||||
IF(PNG_FOUND)
|
#IF(PNG_FOUND)
|
||||||
INCLUDE_DIRECTORIES(${PNG_INCLUDE_DIR})
|
# INCLUDE_DIRECTORIES(${PNG_INCLUDE_DIR})
|
||||||
ADD_EXECUTABLE(squishpng extra/squishpng.cpp)
|
# ADD_EXECUTABLE(squishpng extra/squishpng.cpp)
|
||||||
TARGET_LINK_LIBRARIES(squishpng squish ${PNG_LIBRARY})
|
# TARGET_LINK_LIBRARIES(squishpng squish ${PNG_LIBRARY})
|
||||||
ENDIF(PNG_FOUND)
|
#ENDIF(PNG_FOUND)
|
||||||
|
|
||||||
#ADD_EXECUTABLE(squishgen extra/squishgen.cpp)
|
##ADD_EXECUTABLE(squishgen extra/squishgen.cpp)
|
||||||
|
|
||||||
ADD_EXECUTABLE(squishtest extra/squishtest.cpp)
|
#ADD_EXECUTABLE(squishtest extra/squishtest.cpp)
|
||||||
TARGET_LINK_LIBRARIES(squishtest squish)
|
#TARGET_LINK_LIBRARIES(squishtest squish)
|
||||||
|
|
||||||
ADD_TEST(SQUISHTEST squishtest)
|
#ADD_TEST(SQUISHTEST squishtest)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user