https://github.com/fangda-cu/MultiTracker
Raw File
Tip revision: 7719b2fd81ed3c17419b73b60aeb71b7fd83840c authored by fangda-cu on 01 June 2016, 22:45:13 UTC
Merge pull request #1 from tysonbrochu/master
Tip revision: 7719b2f
CMakeLists.txt
cmake_minimum_required (VERSION 2.6)

project (MultiTracker)
set (MULTITRACKER_MAJOR_VERSION "1")
set (MULTITRACKER_MINOR_VERSION "0")
set (MULTITRACKER_BUGFIX_VERSION "0")
set (MULTITRACKER_VERSION_NUMBER "${MULTITRACKER_MAJOR_VERSION}.${MULTITRACKER_MINOR_VERSION}.${MULTITRACKER_BUGFIX_VERSION}")
set (MULTITRACKER_VERSION "${MULTITRACKER_VERSION_NUMBER}")
add_definitions (-DMULTITRACKER_VERSION="${MULTITRACKER_VERSION}")

if (NOT CMAKE_BUILD_TYPE)
  set (CMAKE_BUILD_TYPE Release CACHE STRING
    "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel."
    FORCE)
endif (NOT CMAKE_BUILD_TYPE)

# add directory with macros
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake)

# add cmake file
include (common)

# set options

if (CMAKE_BUILD_TYPE MATCHES Debug)
  add_definitions (-DDEBUG)
endif (CMAKE_BUILD_TYPE MATCHES Debug)

# Eigen library is required
find_package (Eigen REQUIRED)
include_directories (${EIGEN_INCLUDE_DIR})

find_package (BLAS REQUIRED)
set (DEFAULT_LIBRARIES ${DEFAULT_LIBRARIES} ${BLAS_LIBRARIES})

find_package (LAPACK REQUIRED)
add_definitions (-DHAVE_LAPACK)
set (DEFAULT_LIBRARIES ${DEFAULT_LIBRARIES} ${LAPACK_LIBRARIES})

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/LosTopos/LosTopos3D)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/LosTopos/common)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/LosTopos/common/newsparse)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/LosTopos/common/tunicate)

include_directories (${CMAKE_CURRENT_SOURCE_DIR})

add_subdirectory (LosTopos)

add_subdirectory (Apps)

back to top