-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
76 lines (62 loc) · 2.75 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# ----------------------------------------------------------------------------
# Top level Hetero 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(Hetero CXX C)
# ----------------------------------------------------------------------------
# All binary files will be stored here
# ----------------------------------------------------------------------------
set(RESOURCE_INPUT_PATH "${CMAKE_SOURCE_DIR}/data")
# set(EXECUTABLE_OUTPUT_PATH "${CMAKE_SOURCE_DIR}/bin")
# set(CMAKE_RESOURCE_INPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/data")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin")
# set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/lib")
# set(CMAKE_RESOURCE_INPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/data")
# set(RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin")
# set(LIBRARY_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/lib")
# SET(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/lib)
# set(RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
# ----------------------------------------------------------------------------
# Enable nightly test
# ----------------------------------------------------------------------------
enable_testing()
# ----------------------------------------------------------------------------
# Process subdirectories
# ----------------------------------------------------------------------------
# hetero.hpp and legacy headers
add_subdirectory(include)
# Hetero modules
add_subdirectory(modules)
# Generate targets for documentation
add_subdirectory(doc)
# Various data that is used by hetero libraries and/or demo applications.
add_subdirectory(data)
# 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 'Testing'`
-rf)
# add_custom_target(clear
# COMMAND COMMAND ${CMAKE_COMMAND} -P clear.cmake)
# set(cmake_generated ${CMAKE_SOURCE_DIR}/CMakeCache.txt
# ${CMAKE_SOURCE_DIR}/cmake_install.cmake
# ${CMAKE_SOURCE_DIR}/Makefile
# ${CMAKE_SOURCE_DIR}/CMakeFiles
# # ${CMAKE_SOURCE_DIR}/bin
# )
# foreach(file ${cmake_generated})
# if (EXISTS ${file})
# file(REMOVE_RECURSE ${file})
# endif()
# endforeach(file)