-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
61 lines (51 loc) · 2.32 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# ----------------------------------------------------------------------------
# Top level Deep learning project
# Author : Tran Minh Quan
# Email : [email protected], [email protected]
# Address : High-performance Visual Computing Lab
# Website : http://hvcl.unist.ac.kr/
# ----------------------------------------------------------------------------
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
# ----------------------------------------------------------------------------
project(DeepNeuralNetwork CXX C)
# ----------------------------------------------------------------------------
# All binary files will be stored here
# ----------------------------------------------------------------------------
# set(RESOURCE_INPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/data")
# set(RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin")
# set(LIBRARY_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/lib")
# set(INCLUDE_HEADER_DIRECTORY "${CMAKE_SOURCE_DIR}/include")
set(RESOURCE_INPUT_DIRECTORY "${CMAKE_BINARY_DIR}/data")
set(RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
set(LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
set(INCLUDE_HEADER_DIRECTORY "${CMAKE_BINARY_DIR}/include")
# ----------------------------------------------------------------------------
# Enable nightly test
# ----------------------------------------------------------------------------
enable_testing()
# ----------------------------------------------------------------------------
# Process subdirectories
# ----------------------------------------------------------------------------
# dnn.hpp and legacy headers
# add_subdirectory(include)
# libraries directory
# add_subdirectory(lib)
# Generate targets for documentation
add_subdirectory(doc)
# Various data that is used by libraries and/or demo applications.
add_subdirectory(data)
# modules
add_subdirectory(modules)
# Examples
add_subdirectory(samples)
# ----------------------------------------------------------------------------
# Clean the output and test logs
# ----------------------------------------------------------------------------
add_custom_target(clear
COMMAND rm
`find ./ -iname '*Make*' -not -name CMakeLists.txt`
`find ./ -iname 'bin'`
`find ./ -iname 'lib'`
`find ./ -iname 'include'`
`find ./ -iname 'Testing'`
-rf)