forked from VMML/vmmlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
27 lines (20 loc) · 787 Bytes
/
CMakeLists.txt
File metadata and controls
27 lines (20 loc) · 787 Bytes
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
# Copyright (c) 2011 Daniel Pfeifer <daniel@pfeifer-mail.de>
# 2011-2014 Stefan.Eilemann@epfl.ch
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(vmmlib)
set(VERSION_MAJOR 1)
set(VERSION_MINOR 8)
set(VERSION_PATCH 0)
set(VERSION_ABI 3)
configure_file(${PROJECT_SOURCE_DIR}/vmmlib/version.in.hpp
${PROJECT_SOURCE_DIR}/vmmlib/version.hpp @ONLY)
set(VMMLIB_COMPILE_TESTS TRUE CACHE BOOL "Compile 'tests' and 'tests_old' directories")
if(VMMLIB_COMPILE_TESTS)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake
${CMAKE_SOURCE_DIR}/CMake/common)
include(Common)
include(FindPackages)
common_package(Boost COMPONENTS unit_test_framework)
add_subdirectory(tests)
#add_subdirectory(tests_old)
endif()