2012-08-27 19:36:59 +02:00
|
|
|
|
|
|
|
SET( SOURCES
|
|
|
|
"src/TexComp.cpp"
|
2012-08-28 00:34:37 +02:00
|
|
|
"src/CompressedImage.cpp"
|
2012-08-27 19:36:59 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
SET( HEADERS
|
|
|
|
"include/TexComp.h"
|
2012-08-28 00:34:37 +02:00
|
|
|
"include/CompressedImage.h"
|
2012-08-30 20:00:18 +02:00
|
|
|
"include/TexCompTypes.h"
|
2012-08-27 19:36:59 +02:00
|
|
|
)
|
|
|
|
|
2012-08-30 20:00:18 +02:00
|
|
|
# Make sure to add the appropriate stopwatch files...
|
|
|
|
SET( HEADERS ${HEADERS} "src/StopWatch.h" )
|
|
|
|
IF( MSVC )
|
|
|
|
SET( SOURCES ${SOURCES} "src/StopWatchWin32.cpp" )
|
|
|
|
ELSE()
|
|
|
|
SET( SOURCES ${SOURCES} "src/StopWatchUnix.cpp" )
|
|
|
|
ENDIF()
|
|
|
|
|
2012-08-29 01:42:28 +02:00
|
|
|
INCLUDE_DIRECTORIES( ${TexC_SOURCE_DIR}/BPTCEncoder/include )
|
|
|
|
INCLUDE_DIRECTORIES( ${TexC_BINARY_DIR}/BPTCEncoder/include )
|
|
|
|
|
2012-08-28 00:34:37 +02:00
|
|
|
INCLUDE_DIRECTORIES( ${TexC_SOURCE_DIR}/IO/include )
|
2012-08-29 01:42:28 +02:00
|
|
|
INCLUDE_DIRECTORIES( ${TexC_BINARY_DIR}/IO/include )
|
|
|
|
|
2012-08-27 19:36:59 +02:00
|
|
|
INCLUDE_DIRECTORIES( ${TexC_SOURCE_DIR}/Core/include )
|
|
|
|
|
2012-08-29 20:43:37 +02:00
|
|
|
FIND_PACKAGE( Boost COMPONENTS thread system )
|
|
|
|
IF( Boost_FOUND )
|
|
|
|
INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} )
|
|
|
|
|
|
|
|
SET( SOURCES ${SOURCES} "src/ThreadGroup.cpp")
|
|
|
|
SET( HEADERS ${HEADERS} "src/ThreadGroup.h")
|
|
|
|
|
|
|
|
LINK_DIRECTORIES( ${Boost_LIBRARY_DIR} )
|
|
|
|
ENDIF()
|
|
|
|
|
2012-08-27 19:36:59 +02:00
|
|
|
ADD_LIBRARY( TexCompCore
|
|
|
|
${HEADERS}
|
|
|
|
${SOURCES}
|
|
|
|
)
|
2012-08-28 00:34:37 +02:00
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES( TexCompCore TexCompIO )
|
2012-08-29 01:42:28 +02:00
|
|
|
TARGET_LINK_LIBRARIES( TexCompCore BPTCEncoder )
|
2012-08-29 20:43:37 +02:00
|
|
|
|
|
|
|
IF( Boost_FOUND )
|
|
|
|
TARGET_LINK_LIBRARIES( TexCompCore ${Boost_LIBRARIES} )
|
|
|
|
ENDIF()
|