aboutsummaryrefslogtreecommitdiff
path: root/mwe/dynlink/lib/CMakeLists.txt
blob: 7efc91aaf2f7df7eee09e6b725ffbe077a25731d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
cmake_minimum_required(VERSION 3.28)

set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 20)

project(lib C CXX)

add_library(test SHARED)

target_include_directories(test SYSTEM INTERFACE .)

target_sources(test PUBLIC
	test.c
)

target_sources(test PUBLIC FILE_SET HEADERS FILES
	test.h
)

install(
	TARGETS test
	FILE_SET HEADERS DESTINATION include
)