aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/CMakeLists.txt
blob: 926972340517c644958d3a7a54aa390aba4aee7f (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Copyright (C) 2023 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

project(libsample)

set(libsample_SRC
abstract.cpp abstract.h
blackbox.cpp blackbox.h
bucket.cpp bucket.h
bytearray.cpp bytearray.h
collector.cpp collector.h
complex.cpp complex.h
ctorconvrule.h
ctparam.cpp ctparam.h
cvlist.h
derived.cpp derived.h
derivedusingct.cpp derivedusingct.h
echo.cpp echo.h
exceptiontest.cpp exceptiontest.h
expression.cpp expression.h
filter.cpp filter.h
functions.cpp functions.h
handle.cpp handle.h
implicitconv.cpp implicitconv.h
injectcode.cpp injectcode.h
intwrapper.cpp intwrapper.h
libsamplemacros.h
list.h
listuser.cpp listuser.h
mapuser.cpp mapuser.h
modelindex.h
modifications.cpp modifications.h
modified_constructor.cpp modified_constructor.h
multiple_derived.cpp multiple_derived.h
noimplicitconversion.h
nondefaultctor.h
nontypetemplate.h
null.h
objectmodel.cpp objectmodel.h
objecttype.cpp objecttype.h
objecttypebyvalue.h
objecttypeholder.cpp objecttypeholder.h
objecttypelayout.cpp objecttypelayout.h
objecttypeoperators.cpp objecttypeoperators.h
objectview.cpp objectview.h
oddbool.cpp oddbool.h
onlycopy.cpp onlycopy.h
overload.cpp overload.h
overloadsort.cpp overloadsort.h
pairuser.cpp pairuser.h
pen.cpp pen.h
photon.cpp photon.h
point.cpp point.h
pointerholder.h
pointf.cpp pointf.h
polygon.cpp polygon.h
privatector.h
privatedtor.h
protected.cpp protected.h
rect.h
reference.cpp reference.h
removednamespaces.h
renaming.cpp renaming.h
sample.cpp sample.h
samplenamespace.cpp samplenamespace.h
sbkdate.cpp sbkdate.h
stdcomplex.cpp stdcomplex.h
simplefile.cpp simplefile.h
size.cpp size.h
snakecasetest.cpp snakecasetest.h
sometime.cpp sometime.h
str.cpp str.h
strlist.cpp strlist.h
templateptr.cpp templateptr.h
transform.cpp transform.h
typesystypedef.cpp typesystypedef.h
valueandvirtual.h
virtualmethods.cpp virtualmethods.h
voidholder.h
)

# Includes windows.h which is causing clashes between class Polygon and
# wingdi.h's Polygon() function.

if(WIN32)
    set_source_files_properties(
        bucket.cpp PROPERTIES SKIP_UNITY_BUILD_INCLUSION ON
    )
endif()

add_library(libsample SHARED ${libsample_SRC})
target_include_directories(libsample PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_compile_definitions(libsample PRIVATE LIBSAMPLE_BUILD)
set_property(TARGET libsample PROPERTY PREFIX "")