-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCMakeLists.txt
37 lines (27 loc) · 924 Bytes
/
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
cmake_minimum_required(VERSION 3.0)
project(VALHALLA)
INCLUDE (FindPackageHandleStandardArgs)
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
option(BUILD_ArrayFire "Build the ArrayFire benchmark files" ON)
option(BUILD_Thrust "Build the Thrust benchmark files" OFF)
option(BUILD_BoostCompute "Build the Boost Compute benchmark files" OFF)
option(BUILD_HSABolt "Build the HSA Bolt files" OFF)
option(BUILD_TBB "Build the TBB files" OFF)
SET(CMAKE_CXX_STANDARD 11)
SET(CMAKE_CXX_STANDARD_REQUIRED)
INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/include")
if (${BUILD_ArrayFire})
add_subdirectory(src/arrayfire)
endif()
if (${BUILD_Thrust})
add_subdirectory(src/thrust)
endif()
if (${BUILD_BoostCompute})
add_subdirectory(src/boost.compute)
endif()
if (${BUILD_HSABolt})
add_subdirectory(src/hsa.bolt)
endif()
if (${BUILD_TBB})
add_subdirectory(src/tbb)
endif()