2016-12-03 07:51:00 +00:00
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
project(XCDAT)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -g -std=c++11")
|
|
|
|
|
|
|
|
if(NOT CMAKE_BUILD_TYPE)
|
|
|
|
set(CMAKE_BUILD_TYPE Release)
|
|
|
|
endif()
|
|
|
|
|
2017-03-30 04:21:46 +00:00
|
|
|
if(NOT XCDAT64)
|
|
|
|
set(XCDAT64 OFF)
|
|
|
|
endif()
|
|
|
|
|
2017-03-29 06:01:06 +00:00
|
|
|
if(XCDAT64)
|
|
|
|
add_definitions(-DXCDAT64)
|
|
|
|
endif()
|
|
|
|
|
2016-12-03 07:51:00 +00:00
|
|
|
message(STATUS "BUILD_TYPE is ${CMAKE_BUILD_TYPE}")
|
2017-03-30 04:21:46 +00:00
|
|
|
message(STATUS "XCDAT64 is ${XCDAT64}")
|
2016-12-03 07:51:00 +00:00
|
|
|
|
|
|
|
enable_testing()
|
|
|
|
add_subdirectory(src)
|