2012-08-28 04:49:00 +02:00
|
|
|
|
|
|
|
IF( MSVC )
|
|
|
|
SET( SOURCES "src/clwin32.cpp" )
|
|
|
|
ELSE()
|
|
|
|
SET( SOURCES "src/clunix.cpp" )
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES( ${TexC_SOURCE_DIR}/Core/include )
|
|
|
|
INCLUDE_DIRECTORIES( ${TexC_SOURCE_DIR}/IO/include )
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(
|
|
|
|
tc
|
|
|
|
${SOURCES}
|
|
|
|
)
|
|
|
|
|
2013-01-26 20:12:19 +01:00
|
|
|
# Make sure that if we're using boost libraries for threading then we add this linker path.
|
|
|
|
# Personally, I believe this is a bug in CMAKE but I'm not exactly sure.
|
2013-01-27 00:03:48 +01:00
|
|
|
#IF( THREAD_API MATCHES "Boost" )
|
|
|
|
# SET_TARGET_PROPERTIES(tc PROPERTIES LINK_FLAGS "/LIBPATH:\"${Boost_LIBRARY_DIRS}\"")
|
|
|
|
#ENDIF()
|
2013-01-26 20:12:19 +01:00
|
|
|
|
2012-08-29 01:42:28 +02:00
|
|
|
TARGET_LINK_LIBRARIES( tc BPTCEncoder )
|
2012-08-28 04:49:00 +02:00
|
|
|
TARGET_LINK_LIBRARIES( tc TexCompIO )
|
|
|
|
TARGET_LINK_LIBRARIES( tc TexCompCore )
|