forked from codeplaysoftware/computecpp-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
29 lines (22 loc) · 861 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
cmake_minimum_required(VERSION 3.4.3)
if (COMPUTECPP_SDK_BUILD_DEMOS)
# Policy required to enable MSVC_RUNTIME_LIBRARY property
# This needs to be set before the first project for the policy
# to have an effect. This is only needed when building the demos
cmake_policy(SET CMP0091 NEW)
endif()
project(ComputeCpp-SDK)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)
find_package(ComputeCpp REQUIRED)
option(COMPUTECPP_SDK_USE_OPENMP "Enable OpenMP support in samples" OFF)
option(COMPUTECPP_SDK_BUILD_TESTS "Build the tests for the header utilities in include/" OFF)
option(COMPUTECPP_SDK_BUILD_DEMOS "Build the SDK demos" OFF)
set(CMAKE_CXX_STANDARD 14)
enable_testing()
add_subdirectory(samples)
if(COMPUTECPP_SDK_BUILD_TESTS)
add_subdirectory(tests)
endif()
if (COMPUTECPP_SDK_BUILD_DEMOS)
add_subdirectory(demos)
endif()