-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
55 lines (45 loc) · 1.69 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
cmake_minimum_required(VERSION 3.0)
project(Magic)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
include(Library.cmake)
include_directories(Include)
include_directories(Include/Core)
include_directories(Include/Utility)
include_directories(Include/PluginFramework)
set(SRC
Source/Core/Logger.cpp
Source/Core/Thread.cpp
Source/Platform/Linux/Mutex.cpp
Source/Platform/Linux/Library.cpp
Source/Platform/Linux/FileUtils.cpp
Source/Platform/Linux/TimerUtils.cpp
Source/Platform/Linux/ThreadUtils.cpp
Source/Platform/Linux/SystemUtils.cpp
Source/Platform/Windows/Mutex.cpp
Source/Platform/Windows/Library.cpp
Source/Platform/Windows/FileUtils.cpp
Source/Platform/Windows/TimerUtils.cpp
Source/Platform/Windows/ThreadUtils.cpp
Source/Platform/Windows/SystemUtils.cpp
Source/PluginFramework/Plugin.cpp
Source/PluginFramework/Plugins.cpp
Source/PluginFramework/Services.cpp
Source/PluginFramework/PluginLoader.cpp
Source/PluginFramework/PluginArchive.cpp
Source/PluginFramework/PluginContext.cpp
Source/PluginFramework/PluginStorage.cpp
Source/PluginFramework/PluginManifest.cpp
Source/PluginFramework/PluginFramework.cpp
Source/PluginFramework/ServiceReference.cpp
Source/PluginFramework/ServiceRegistration.cpp
Source/PluginFramework/PluginFrameworkContext.cpp
)
add_library(Magic ${SRC})
#Tool
add_executable(EmbedFile Tool/EmbedFile.cpp)
add_executable(Generator Tool/Generator.cpp)
install(TARGETS EmbedFile Generator Magic
RUNTIME DESTINATION ${PROJECT_SOURCE_DIR}/Bin
ARCHIVE DESTINATION ${PROJECT_SOURCE_DIR}/Lib
)