mirror of
https://github.com/fumiama/fumidb.git
synced 2026-06-10 21:24:12 +08:00
16 lines
380 B
CMake
16 lines
380 B
CMake
cmake_minimum_required(VERSION 3.0.0)
|
|
project(fumidb VERSION 1.0)
|
|
SET(CMAKE_BUILD_TYPE "Release")
|
|
|
|
include(TestBigEndian)
|
|
test_big_endian(isBigEndian)
|
|
if(${isBigEndian})
|
|
add_definitions(-DWORDS_BIGENDIAN)
|
|
endif()
|
|
|
|
option(BUILD_TEST "Whether to build tests" OFF)
|
|
if(${BUILD_TEST})
|
|
message(STATUS "Building tests...")
|
|
enable_testing()
|
|
add_subdirectory(tests)
|
|
endif() |