-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathCMakeLists.txt
41 lines (33 loc) · 1.69 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
################################################################################
# #
# OpenNN: Open Neural Networks Library #
# www.intelnics.com/opennn #
# #
# O P E N N N P R O J E C T #
# #
# Roberto Lopez #
# Intelnics - The artificial intelligence company #
# #
################################################################################
cmake_minimum_required(VERSION 2.8)
set(CMAKE_DISABLE_SOURCE_CHANGES ON)
set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
project(OpenNN)
set(MAJOR_VERSION 1)
set(MINOR_VERSION 0)
set(PATCH_VERSION 0)
set(VERSION ${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION})
option(WithExamples "Build with examples." OFF)
option(WithTests "Build with tests." OFF)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/source")
if(WithTests)
MESSAGE("Will build tests.")
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/tests")
endif()
if(WithExamples)
MESSAGE("Will build examples.")
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/examples")
endif()