-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
30 lines (22 loc) · 838 Bytes
/
CMakeLists.txt
File metadata and controls
30 lines (22 loc) · 838 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
28
29
30
cmake_minimum_required(VERSION 3.15)
project(isml VERSION 0.1.6 LANGUAGES CXX)
option(WITH_TESTS "Build library with unit tests" OFF)
option(WITH_EXAMPLES "Build library with examples" OFF)
option(WITH_DOCS "Build library with docs" OFF)
set(ISML_CORE "${PROJECT_NAME}.core")
add_definitions(-include ${CMAKE_CURRENT_SOURCE_DIR}/include/isml/platform.hpp)
if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake")
message(STATUS "Downloading conan.cmake from https://github.com/conan-io/cmake-conan")
file(DOWNLOAD "https://raw.githubusercontent.com/conan-io/cmake-conan/master/conan.cmake"
"${CMAKE_BINARY_DIR}/conan.cmake")
endif()
add_subdirectory(src)
if(WITH_TESTS)
add_subdirectory(tests)
endif()
if(WITH_EXAMPLES)
add_subdirectory(examples)
endif()
if(WITH_DOCS)
add_subdirectory(docs)
endif()