2012-09-30 19:34:21 +00:00
|
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR)
|
2012-08-24 19:56:45 +00:00
|
|
|
PROJECT(TexC)
|
|
|
|
|
2013-01-26 19:12:19 +00:00
|
|
|
IF(MSVC)
|
|
|
|
SET(MSVC_INSTALL_PATH "${PROJECT_SOURCE_DIR}/Windows")
|
|
|
|
SET(CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH};${MSVC_INSTALL_PATH}")
|
|
|
|
|
|
|
|
IF(MSVC10)
|
|
|
|
SET(MSVC_VERSION_STRING vc100)
|
|
|
|
ELSEIF(MSVC11)
|
|
|
|
SET(MSVC_VERSION_STRING vc110)
|
|
|
|
ELSEIF(MSVC90)
|
|
|
|
SET(MSVC_VERSION_STRING vc90)
|
|
|
|
ELSEIF(MSVC80)
|
|
|
|
SET(MSVC_VERSION_STRING vc80)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
# !FIXME! Actually detect compiler architecture version....
|
2013-01-26 23:04:43 +00:00
|
|
|
IF( CMAKE_SIZEOF_VOID_P EQUAL 8 )
|
|
|
|
SET(MSVC_ARCHITECTURE_STRING x64)
|
|
|
|
ELSE()
|
|
|
|
SET(MSVC_ARCHITECTURE_STRING x86)
|
|
|
|
ENDIF()
|
2013-01-26 19:12:19 +00:00
|
|
|
|
|
|
|
SET(MSVC_LIB_DIR "${MSVC_INSTALL_PATH}/lib/${MSVC_ARCHITECTURE_STRING}/${MSVC_VERSION_STRING}")
|
|
|
|
SET(CMAKE_LIBRARY_PATH "${CMAKE_LIBRARY_PATH};${MSVC_LIB_DIR}")
|
|
|
|
ENDIF(MSVC)
|
|
|
|
|
2012-08-24 19:56:45 +00:00
|
|
|
ADD_SUBDIRECTORY(BPTCEncoder)
|
2012-08-26 20:37:10 +00:00
|
|
|
ADD_SUBDIRECTORY(IO)
|
2012-08-27 22:34:37 +00:00
|
|
|
ADD_SUBDIRECTORY(Core)
|
2012-08-28 02:49:00 +00:00
|
|
|
|
|
|
|
ADD_SUBDIRECTORY(CLTool)
|