-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
42 lines (35 loc) · 1.1 KB
/
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
35
36
37
38
39
40
41
42
#
# Copyright 2013-2021 CNRS-UM LIRMM, CNRS-AIST JRL, INRIA
#
cmake_minimum_required(VERSION 3.1.3)
set(CMAKE_CXX_STANDARD 11)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(PROJECT_NAME lexls)
set(PROJECT_VERSION 0.5.0)
project(
${PROJECT_NAME}
LANGUAGES CXX
VERSION ${PROJECT_VERSION}
)
include(CTest)
include(GNUInstallDirs)
enable_testing()
option(INSTALL_HTML_DOCUMENTATION "Install project HTML documentation" ON)
option(INSTALL_PDF_DOCUMENTATION "Install project PDF documentation" ON)
option(BUILD_OCTAVE_BINDINGS "Build GNU Octave bindings" OFF)
option(BUILD_MATLAB_BINDINGS "Build MATLAB bindings" OFF)
find_package(Eigen3 QUIET NO_CMAKE_PACKAGE_REGISTRY)
if(Eigen3_FOUND)
find_package(Eigen3 REQUIRED NO_CMAKE_PACKAGE_REGISTRY)
set(EIGEN3_DEPENDENCY "find_package(Eigen3 REQUIRED NO_CMAKE_PACKAGE_REGISTRY)")
else()
find_package(Eigen3 MODULE REQUIRED)
set(EIGEN3_DEPENDENCY "find_package(Eigen3 MODULE REQUIRED)")
endif()
add_subdirectory(include)
add_subdirectory(cmake)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()
add_subdirectory(doc)
add_subdirectory(interfaces/matlab-octave)