-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
35 lines (26 loc) · 911 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
project(cuneiform C CXX)
cmake_minimum_required(VERSION 2.6.2)
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})
if(WIN32)
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR})
endif()
if(PROJECT_BINARY_DIR STREQUAL PROJECT_SOURCE_DIR)
message(FATAL_ERROR "In-tree build attempt detected, aborting. Set your build dir outside your source dir, delete CMakeCache.txt from source root and try again.")
endif()
set(CF_VERSION_MAJOR "1")
set(CF_VERSION_MINOR "0")
set(CF_VERSION_PATCH "0")
set(CF_VERSION "${CF_VERSION_MAJOR}.${CF_VERSION_MINOR}.${CF_VERSION_PATCH}")
option(BUILD_TESTING "Enable CTest framework." OFF)
if(BUILD_TESTING)
enable_testing()
include(CTest)
include(Dart)
add_subdirectory(images)
endif()
include(install_files.cmake)
#add_subdirectory(tests)
add_subdirectory(headers)
add_subdirectory(datafiles)
add_subdirectory(cuneiform_src)