forked from envytools/envytools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
48 lines (42 loc) · 1.44 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
project(ENVYTOOLS C)
cmake_minimum_required(VERSION 2.6)
enable_testing()
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Debug")
endif (NOT CMAKE_BUILD_TYPE)
if (NOT DOC_PATH)
set(DOC_PATH "share/doc/envytools/")
endif (NOT DOC_PATH)
include_directories(include)
add_subdirectory(util)
add_subdirectory(easm)
add_subdirectory(nva)
add_subdirectory(rnn)
add_subdirectory(envydis)
add_subdirectory(nvbios)
add_subdirectory(vstream)
add_subdirectory(vdpow)
add_subdirectory(nvhw)
add_subdirectory(hwtest)
# Get the list of hwdoc files to install them in a flat directory
file(GLOB_RECURSE HWDOCS_SRC hwdocs/*)
# Get the full patch to .gitignore and remove it from the list
file(GLOB GITIGNORE hwdocs/.gitignore)
list(REMOVE_ITEM HWDOCS_SRC ${GITIGNORE})
install(DIRECTORY include/ DESTINATION include/envytools)
install(DIRECTORY rnndb DESTINATION share PATTERN ".gitignore" EXCLUDE)
install(FILES ${HWDOCS_SRC} DESTINATION ${DOC_PATH}/hwdocs)
install(FILES README DESTINATION ${DOC_PATH})
message("")
message("-- Summary --")
message("")
message("General:")
message(" C-flags: '${CMAKE_C_FLAGS}' (-DCMAKE_C_FLAGS=\"...\")")
message(" Build type: ${CMAKE_BUILD_TYPE} (-DCMAKE_BUILD_TYPE=\"...\")")
message("")
message("Install:")
message(" Prefix: '${CMAKE_INSTALL_PREFIX}' (-DCMAKE_INSTALL_PREFIX=...)")
message(" Doc path: '${DOC_PATH}' (-DDOC_PATH=...)")
message(" Python: '${NVAPY_PATH}' (-DNVAPY_PATH)")
message("")