-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
101 lines (98 loc) · 4.29 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
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
96
97
98
99
100
101
cmake_minimum_required(VERSION 3.4)
project(Swen)
set(SOURCE_FILES
Sources/SwenDemo/SwenDemo.swift
Sources/SwenDemo/main.swift
Sources/SwenDemo/Enemy.swift
Sources/SwenDemo/Item.swift
Sources/SwenDemo/Player.swift
Sources/Swen/Texture.swift
Sources/Swen/Media/FileFormats/AudioFile.swift
Sources/Swen/Media/FileFormats/FontFile.swift
Sources/Swen/Media/FileFormats/ImageFile.swift
Sources/Swen/Media/FileFormats/ImageMapFile.swift
Sources/Swen/Media/Loaders/AudioLoader.swift
Sources/Swen/Media/Loaders/FontLoader.swift
Sources/Swen/Media/Loaders/ImageLoader.swift
Sources/Swen/Media/Loaders/TextureAtlasLoader.swift
Sources/Swen/Media/AssetLoader.swift
Sources/Swen/Media/ContentPipeline.swift
Sources/Swen/Events/AudioDeviceEvent.swift
Sources/Swen/Events/BaseEvent.swift
Sources/Swen/Events/CommonEvent.swift
Sources/Swen/Events/ControllerAxisEvent.swift
Sources/Swen/Events/ControllerButtonEvent.swift
Sources/Swen/Events/ControllerDeviceEvent.swift
Sources/Swen/Events/DropEvent.swift
Sources/Swen/Events/JoyAxisEvent.swift
Sources/Swen/Events/JoyBallEvent.swift
Sources/Swen/Events/JoyButtonEvent.swift
Sources/Swen/Events/JoyDeviceEvent.swift
Sources/Swen/Events/JoyHatEvent.swift
Sources/Swen/Events/SDLEvent.swift
Sources/Swen/Events/KeyboardEvent.swift
Sources/Swen/Events/MouseButtonEvent.swift
Sources/Swen/Events/MouseMotionEvent.swift
Sources/Swen/Events/MouseWheelEvent.swift
Sources/Swen/Events/QuitEvent.swift
Sources/Swen/Events/SysWMEvent.swift
Sources/Swen/Events/TextEditingEvent.swift
Sources/Swen/Events/TextInputEvent.swift
Sources/Swen/Events/UserEvent.swift
Sources/Swen/Events/WindowEvent.swift
Sources/Swen/SDL/Extensions/SDLExtension.swift
Sources/Swen/SDL/Extensions/SDLExtensionCore.swift
Sources/Swen/SDL/Extensions/SDLExtensionImage.swift
Sources/Swen/SDL/Extensions/SDLExtensionLoader.swift
Sources/Swen/SDL/Extensions/SDLExtensionMixer.swift
Sources/Swen/SDL/Extensions/SDLExtensionNet.swift
Sources/Swen/SDL/Extensions/SDLExtensionTTF.swift
Sources/Swen/GameBase.swift
Sources/Swen/GameLoop.swift
Sources/Swen/GameSettings.swift
Sources/Swen/Network/Socket.swift
Sources/Swen/Network/TCPSocket.swift
Sources/Swen/Network/UDPSocket.swift
Sources/Swen/Physics/PhyArbiter.swift
Sources/Swen/Physics/PhyShape.swift
Sources/Swen/Physics/PhySpace.swift
Sources/Swen/Physics/PhyBody.swift
Sources/Swen/Physics/PhyMisc.swift
Sources/Swen/Physics/PhyDebug.swift
Sources/Swen/Physics/PhyConstraint.swift
Sources/Swen/Physics/PhyBoundingBox.swift
Sources/Swen/Physics/PhyDebugDrawDelegate.swift
Sources/Swen/Physics/PhyDebugSDL.swift
Sources/Swen/Renderer.swift
Sources/Swen/SDL/SDL.swift
Sources/Swen/SDL/SDLError.swift
Sources/Swen/Sprite.swift
Sources/Swen/Surface.swift
Sources/Swen/Timer.swift
Sources/Swen/Window.swift
Sources/Swen/Util/Extensions/ArrayExtensions.swift
Sources/Swen/Util/Extensions/OptionalExtensions.swift
Sources/Swen/Util/Colour.swift
Sources/Swen/Util/IPAddress.swift
Sources/Swen/Util/XPathDocument.swift
Sources/Swen/Util/Math.swift
Sources/Swen/Util/LowLevelHandle.swift
Sources/Swen/Input/Keyboard.swift
Sources/Swen/Input/KeyCode.swift
Sources/Swen/Input/KeyMod.swift
Sources/Swen/Input/Mouse.swift
Sources/Swen/Util/Rect.swift
Sources/Swen/Input/ScanCode.swift
Sources/Swen/Util/ConvertHelpers/SDLConvertHelper.swift
Sources/Swen/Util/ConvertHelpers/ChipmunkConvertHelper.swift
Sources/Swen/Util/Size.swift
Sources/Swen/Util/Vector.swift
Tests/Swen/Util/TestRect.swift
Packages/Signals-2.2.1/Sources/Signal.swift
Package.swift)
#set(PACKAGES
# Packages/.git-1.0.0/Package.swift)
add_custom_target(
COMMAND /usr/bin/swift build
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
SOURCES ${SOURCE_FILES})