-
Notifications
You must be signed in to change notification settings - Fork 8
/
CMakeLists.txt
42 lines (28 loc) · 1.15 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
# Copyright (c) 2018-Present Advanced Micro Devices, Inc. See LICENSE.TXT for terms.
cmake_minimum_required(VERSION 3.1)
project(DAGEE-examples
VERSION 0.1)
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE RelWithDebInfo)
endif()
include(cmakeUtils/common.cmake)
include(cmakeUtils/enableCompilerWarnings.cmake)
include(cmakeUtils/rocmDeps.cmake)
include(CTest)
set(CMAKE_CXX_STANDARD 11) # C++11...
set(CMAKE_CXX_STANDARD_REQUIRED ON) #...is required...
set(CMAKE_CXX_EXTENSIONS OFF) #...without compiler extensions like gnu++11
if(CMAKE_CXX_COMPILER MATCHES "hipcc")
set(HAVE_HIP ON)
endif()
defineCMakeVar(DAGEE_ROOT "DAGEE-lib")
if(DAGEE_ROOT)
include_directories(${DAGEE_ROOT}/include)
endif()
include_directories(cppUtils/include)
add_subdirectory(examples)
add_subdirectory(dagrTests)
################ doxygen documentation cmake setup ############
# list all the dirs for doxygen documentaiton
set(DOXYFILE_SOURCE_DIRS "\"${CMAKE_CURRENT_SOURCE_DIR}/README.md ${CMAKE_CURRENT_SOURCE_DIR}/doc ${CMAKE_CURRENT_SOURCE_DIR}/examples ${CMAKE_CURRENT_SOURCE_DIR}/DAGEE-lib ${CMAKE_CURRENT_SOURCE_DIR}/cppUtils/\"")
include(cmakeUtils/runDoxygen.cmake)