summaryrefslogtreecommitdiffstats
path: root/Tests/GhsMulti/GhsMultiIntegrity/GhsMultiIntegrityDD/CMakeLists.txt
blob: 3d0642d48dc6f839505f10238b916bc1671a7b9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.

cmake_minimum_required(VERSION 3.12 FATAL_ERROR)

project(test C)

# create virtual AS
add_executable(vas exe.c)
target_link_libraries(vas lib)
add_library(lib func.c)

# create dynamic download INTEGRITY application
add_executable(dynamic)
set_target_properties(dynamic PROPERTIES ghs_integrity_app ON)
target_compile_options(dynamic PRIVATE -dynamic)
add_dependencies(dynamic vas)