forked from GPUOpen-Tools/gpu_performance_api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
38 lines (27 loc) · 1.12 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
## Copyright (c) 2018 Advanced Micro Devices, Inc. All rights reserved.
cmake_minimum_required(VERSION 3.5.1)
set(DEPTH "./")
message(STATUS "Generating project files for GPA....")
set(GPA_CMAKE_MODULES_DIR ${CMAKE_CURRENT_SOURCE_DIR}/build/cmake_modules)
if(NOT DEFINED build)
set(GPA_BUILD_NUMBER 0)
else()
set(GPA_BUILD_NUMBER ${build})
endif()
include(${GPA_CMAKE_MODULES_DIR}/gpa_version.cmake)
include(${GPA_CMAKE_MODULES_DIR}/defs.cmake)
include(${GPA_CMAKE_MODULES_DIR}/build_flags.cmake)
if(${AMDT_INTERNAL_BUILD_FLAG})
include(${CMAKE_COMMON_SRC_GLOBAL_INTERNAL})
endif()
set(GPA_ALL_OPEN_SOURCE ON)
if(${BUILD_ANDROID})
include (${GPA_CMAKE_MODULES_DIR}/android.cmake)
project(GPUPerfAPI-Full${AMDTInternalSuffix} VERSION ${GPA_MAJOR_VERSION}.${GPA_MINOR_VERSION} LANGUAGES C CXX)
include(${GPA_CMAKE_MODULES_DIR}/targets.cmake)
return()
endif()
## Define the GPA solution name
project(GPUPerfAPI${AMDTInternalSuffix} VERSION ${GPA_MAJOR_VERSION}.${GPA_MINOR_VERSION} LANGUAGES C CXX)
include(${GPA_CMAKE_MODULES_DIR}/targets.cmake)
message(STATUS "Finished generating project files for GPA.")