-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
33 lines (26 loc) · 1.21 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
# Copyright (c) 2021-2024 Advanced Micro Devices, Inc. All rights reserved.
cmake_minimum_required(VERSION 3.0)
# List of projects.
project(isa_spec_manager)
# Setting compiler flags.
set (CMAKE_CXX_COMPILER g++)
set (CMAKE_CXX_STANDARD 14)
set (CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${FLAGS})
# Enable using folders to group projects on Windows (Visual Studio solution).
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# Windows solution generator is a multi config generator, so define
# CMAKE_CONFIGURATION_TYPES, which enables usage of $<$<CONFIG:value1>value2> syntax for Windows settings.
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
# Visual Studio
set(CMAKE_CONFIGURATION_TYPES "Release;Debug")
endif()
# Setting project directories.
# XML ISA Spec Decoder API: accepts ISA Spec for specific architecture
# and provides interface for decoding of instructions or data retrieval
# for specific instructions in the architecture.
add_subdirectory(./source/isa_decoder)
# Examples: demonstrates utilities and API features using example apps
add_subdirectory(./source/examples)
# CLI commands: provides command line interface implementation
# for generation of various CLI programs.
add_subdirectory(./source/isa_spec_cli)