-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
30 lines (22 loc) · 1.03 KB
/
CMakeLists.txt
File metadata and controls
30 lines (22 loc) · 1.03 KB
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
#######################################################################################################################
### Copyright (c) 2018-2025 Advanced Micro Devices, Inc. All rights reserved.
### @author AMD Developer Tools Team
#######################################################################################################################
cmake_minimum_required (VERSION 3.5.1)
project (ComgrUtils)
set (COMGR_UTILS_VERSION_MAJOR 1)
set (COMGR_UTILS_VERSION_MINOR 0)
# Path to the comgr header
include_directories(AFTER ${COMGR_INCLUDE_DIR} )
# Add all header and source files within the directory to the library.
file (GLOB CPP_INC
"source/comgr_utils.h"
)
# Add all source files found within this directory.
file (GLOB CPP_SRC
"source/comgr_utils.cpp"
)
# Pick up the source files that are relevant to the platform
add_library(${PROJECT_NAME} STATIC ${CPP_SRC} ${CPP_INC})
# Added since comgr_utils is included in a dynamic object (RgpFileAnalyzer)
set_property(TARGET ${PROJECT_NAME} PROPERTY POSITION_INDEPENDENT_CODE ON)