2015-09-28 19:53:46 +01:00
|
|
|
project(MultiMC_logic)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
include (UnitTest)
|
|
|
|
|
|
|
|
set(CORE_SOURCES
|
2015-02-09 00:51:14 +00:00
|
|
|
# LOGIC - Base classes and infrastructure
|
|
|
|
BaseInstaller.h
|
|
|
|
BaseInstaller.cpp
|
|
|
|
BaseVersionList.h
|
|
|
|
BaseVersionList.cpp
|
|
|
|
InstanceList.h
|
|
|
|
InstanceList.cpp
|
|
|
|
BaseVersion.h
|
|
|
|
BaseInstance.h
|
|
|
|
BaseInstance.cpp
|
2015-02-11 18:56:55 +00:00
|
|
|
NullInstance.h
|
2015-04-12 21:50:52 +01:00
|
|
|
MMCZip.h
|
|
|
|
MMCZip.cpp
|
2015-04-19 03:19:29 +01:00
|
|
|
MMCStrings.h
|
|
|
|
MMCStrings.cpp
|
|
|
|
|
|
|
|
# Prefix tree where node names are strings between separators
|
|
|
|
SeparatorPrefixTree.h
|
2015-02-09 00:51:14 +00:00
|
|
|
|
|
|
|
# WARNING: globals live here
|
|
|
|
Env.h
|
|
|
|
Env.cpp
|
|
|
|
|
|
|
|
# JSON parsing helpers
|
2015-05-28 18:38:29 +01:00
|
|
|
Json.h
|
|
|
|
Json.cpp
|
2016-01-05 06:32:52 +00:00
|
|
|
|
2015-05-28 18:38:29 +01:00
|
|
|
FileSystem.h
|
|
|
|
FileSystem.cpp
|
2016-01-05 06:32:52 +00:00
|
|
|
|
2015-05-28 18:38:29 +01:00
|
|
|
Exception.h
|
2015-02-09 00:51:14 +00:00
|
|
|
|
|
|
|
# RW lock protected map
|
|
|
|
RWStorage.h
|
|
|
|
|
|
|
|
# A variable that has an implicit default value and keeps track of changes
|
|
|
|
DefaultVariable.h
|
|
|
|
|
|
|
|
# a smart pointer wrapper intended for safer use with Qt signal/slot mechanisms
|
|
|
|
QObjectPtr.h
|
|
|
|
|
2015-08-18 01:25:24 +01:00
|
|
|
# Compression support
|
|
|
|
GZip.h
|
|
|
|
GZip.cpp
|
|
|
|
|
2015-10-05 00:47:27 +01:00
|
|
|
# Command line parameter parsing
|
|
|
|
Commandline.h
|
|
|
|
Commandline.cpp
|
|
|
|
|
|
|
|
# Version number string support
|
|
|
|
Version.h
|
|
|
|
Version.cpp
|
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
# A Recursive file system watcher
|
|
|
|
RecursiveFileSystemWatcher.h
|
|
|
|
RecursiveFileSystemWatcher.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_unit_test(FileSystem
|
|
|
|
SOURCES FileSystem_test.cpp
|
|
|
|
LIBS MultiMC_logic
|
|
|
|
DATA testdata
|
|
|
|
)
|
|
|
|
|
|
|
|
add_unit_test(GZip
|
|
|
|
SOURCES GZip_test.cpp
|
|
|
|
LIBS MultiMC_logic
|
|
|
|
)
|
|
|
|
|
|
|
|
set(PATHMATCHER_SOURCES
|
|
|
|
# Path matchers
|
|
|
|
pathmatcher/FSTreeMatcher.h
|
|
|
|
pathmatcher/IPathMatcher.h
|
|
|
|
pathmatcher/MultiMatcher.h
|
|
|
|
pathmatcher/RegexpMatcher.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(NET_SOURCES
|
2015-02-09 00:51:14 +00:00
|
|
|
# network stuffs
|
|
|
|
net/NetAction.h
|
|
|
|
net/MD5EtagDownload.h
|
|
|
|
net/MD5EtagDownload.cpp
|
|
|
|
net/ByteArrayDownload.h
|
|
|
|
net/ByteArrayDownload.cpp
|
|
|
|
net/CacheDownload.h
|
|
|
|
net/CacheDownload.cpp
|
|
|
|
net/NetJob.h
|
|
|
|
net/NetJob.cpp
|
|
|
|
net/HttpMetaCache.h
|
|
|
|
net/HttpMetaCache.cpp
|
|
|
|
net/PasteUpload.h
|
|
|
|
net/PasteUpload.cpp
|
|
|
|
net/URLConstants.h
|
|
|
|
net/URLConstants.cpp
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
# Game launch logic
|
|
|
|
set(LAUNCH_SOURCES
|
2015-07-21 01:38:15 +01:00
|
|
|
launch/steps/PostLaunchCommand.cpp
|
|
|
|
launch/steps/PostLaunchCommand.h
|
|
|
|
launch/steps/PreLaunchCommand.cpp
|
|
|
|
launch/steps/PreLaunchCommand.h
|
|
|
|
launch/steps/TextPrint.cpp
|
|
|
|
launch/steps/TextPrint.h
|
|
|
|
launch/steps/Update.cpp
|
|
|
|
launch/steps/Update.h
|
|
|
|
launch/LaunchStep.cpp
|
|
|
|
launch/LaunchStep.h
|
|
|
|
launch/LaunchTask.cpp
|
|
|
|
launch/LaunchTask.h
|
2015-07-10 00:11:06 +01:00
|
|
|
launch/LoggedProcess.cpp
|
2015-07-21 01:38:15 +01:00
|
|
|
launch/LoggedProcess.h
|
2015-07-10 00:11:06 +01:00
|
|
|
launch/MessageLevel.cpp
|
|
|
|
launch/MessageLevel.h
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
2015-07-10 00:11:06 +01:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
# Old update system
|
|
|
|
set(UPDATE_SOURCES
|
2015-02-09 00:51:14 +00:00
|
|
|
updater/GoUpdate.h
|
|
|
|
updater/GoUpdate.cpp
|
|
|
|
updater/UpdateChecker.h
|
|
|
|
updater/UpdateChecker.cpp
|
|
|
|
updater/DownloadTask.h
|
|
|
|
updater/DownloadTask.cpp
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
add_unit_test(UpdateChecker
|
|
|
|
SOURCES updater/UpdateChecker_test.cpp
|
|
|
|
LIBS MultiMC_logic
|
|
|
|
DATA updater/testdata
|
|
|
|
)
|
|
|
|
|
|
|
|
add_unit_test(DownloadTask
|
|
|
|
SOURCES updater/DownloadTask_test.cpp
|
|
|
|
LIBS MultiMC_logic
|
|
|
|
DATA updater/testdata
|
|
|
|
)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
# Rarely used notifications
|
|
|
|
set(NOTIFICATIONS_SOURCES
|
2015-02-09 00:51:14 +00:00
|
|
|
# Notifications - short warning messages
|
|
|
|
notifications/NotificationChecker.h
|
|
|
|
notifications/NotificationChecker.cpp
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
# Backend for the news bar... there's usually no news.
|
|
|
|
set(NEWS_SOURCES
|
2015-02-09 00:51:14 +00:00
|
|
|
# News System
|
|
|
|
news/NewsChecker.h
|
|
|
|
news/NewsChecker.cpp
|
|
|
|
news/NewsEntry.h
|
|
|
|
news/NewsEntry.cpp
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-05-03 16:49:56 +01:00
|
|
|
# Icon interface
|
|
|
|
set(ICONS_SOURCES
|
|
|
|
# News System
|
|
|
|
icons/IIconList.h
|
|
|
|
icons/IIconList.cpp
|
|
|
|
)
|
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
# Minecraft services status checker
|
|
|
|
set(STATUS_SOURCES
|
2015-02-09 00:51:14 +00:00
|
|
|
# Status system
|
|
|
|
status/StatusChecker.h
|
|
|
|
status/StatusChecker.cpp
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
# Support for Minecraft instances and launch
|
|
|
|
set(MINECRAFT_SOURCES
|
2015-02-09 00:51:14 +00:00
|
|
|
# Minecraft support
|
2016-04-14 00:23:54 +01:00
|
|
|
minecraft/auth/AuthSession.h
|
|
|
|
minecraft/auth/AuthSession.cpp
|
|
|
|
minecraft/auth/MojangAccountList.h
|
|
|
|
minecraft/auth/MojangAccountList.cpp
|
|
|
|
minecraft/auth/MojangAccount.h
|
|
|
|
minecraft/auth/MojangAccount.cpp
|
|
|
|
minecraft/auth/YggdrasilTask.h
|
|
|
|
minecraft/auth/YggdrasilTask.cpp
|
|
|
|
minecraft/auth/flows/AuthenticateTask.h
|
|
|
|
minecraft/auth/flows/AuthenticateTask.cpp
|
|
|
|
minecraft/auth/flows/RefreshTask.cpp
|
|
|
|
minecraft/auth/flows/RefreshTask.cpp
|
|
|
|
minecraft/auth/flows/ValidateTask.h
|
|
|
|
minecraft/auth/flows/ValidateTask.cpp
|
2016-02-27 18:58:40 +00:00
|
|
|
minecraft/onesix/OneSixUpdate.h
|
|
|
|
minecraft/onesix/OneSixUpdate.cpp
|
|
|
|
minecraft/onesix/OneSixInstance.h
|
|
|
|
minecraft/onesix/OneSixInstance.cpp
|
|
|
|
minecraft/onesix/OneSixProfileStrategy.cpp
|
|
|
|
minecraft/onesix/OneSixProfileStrategy.h
|
2016-02-27 21:02:56 +00:00
|
|
|
minecraft/onesix/OneSixVersionFormat.cpp
|
|
|
|
minecraft/onesix/OneSixVersionFormat.h
|
2016-04-10 16:43:41 +01:00
|
|
|
minecraft/launch/ModMinecraftJar.cpp
|
|
|
|
minecraft/launch/ModMinecraftJar.h
|
|
|
|
minecraft/launch/LaunchMinecraft.cpp
|
|
|
|
minecraft/launch/LaunchMinecraft.h
|
2016-04-03 23:33:56 +01:00
|
|
|
minecraft/legacy/LegacyModList.h
|
|
|
|
minecraft/legacy/LegacyModList.cpp
|
2016-02-27 18:58:40 +00:00
|
|
|
minecraft/legacy/LegacyUpdate.h
|
|
|
|
minecraft/legacy/LegacyUpdate.cpp
|
|
|
|
minecraft/legacy/LegacyInstance.h
|
|
|
|
minecraft/legacy/LegacyInstance.cpp
|
|
|
|
minecraft/legacy/LwjglVersionList.h
|
|
|
|
minecraft/legacy/LwjglVersionList.cpp
|
2015-02-09 00:51:14 +00:00
|
|
|
minecraft/GradleSpecifier.h
|
|
|
|
minecraft/MinecraftProfile.cpp
|
|
|
|
minecraft/MinecraftProfile.h
|
2016-02-27 21:02:56 +00:00
|
|
|
minecraft/MojangVersionFormat.cpp
|
|
|
|
minecraft/MojangVersionFormat.h
|
2015-02-09 00:51:14 +00:00
|
|
|
minecraft/JarMod.h
|
|
|
|
minecraft/MinecraftInstance.cpp
|
|
|
|
minecraft/MinecraftInstance.h
|
|
|
|
minecraft/MinecraftVersion.cpp
|
|
|
|
minecraft/MinecraftVersion.h
|
|
|
|
minecraft/MinecraftVersionList.cpp
|
|
|
|
minecraft/MinecraftVersionList.h
|
2016-03-07 01:01:28 +00:00
|
|
|
minecraft/Rule.cpp
|
|
|
|
minecraft/Rule.h
|
2015-02-09 00:51:14 +00:00
|
|
|
minecraft/OpSys.cpp
|
|
|
|
minecraft/OpSys.h
|
|
|
|
minecraft/ParseUtils.cpp
|
|
|
|
minecraft/ParseUtils.h
|
|
|
|
minecraft/ProfileUtils.cpp
|
|
|
|
minecraft/ProfileUtils.h
|
|
|
|
minecraft/ProfileStrategy.h
|
2016-03-07 01:01:28 +00:00
|
|
|
minecraft/Library.cpp
|
|
|
|
minecraft/Library.h
|
|
|
|
minecraft/MojangDownloadInfo.h
|
2015-02-09 00:51:14 +00:00
|
|
|
minecraft/VersionBuildError.h
|
|
|
|
minecraft/VersionFile.cpp
|
|
|
|
minecraft/VersionFile.h
|
|
|
|
minecraft/ProfilePatch.h
|
|
|
|
minecraft/VersionFilterData.h
|
|
|
|
minecraft/VersionFilterData.cpp
|
|
|
|
minecraft/Mod.h
|
|
|
|
minecraft/Mod.cpp
|
|
|
|
minecraft/ModList.h
|
|
|
|
minecraft/ModList.cpp
|
2015-08-19 00:10:17 +01:00
|
|
|
minecraft/World.h
|
|
|
|
minecraft/World.cpp
|
|
|
|
minecraft/WorldList.h
|
|
|
|
minecraft/WorldList.cpp
|
2015-02-09 00:51:14 +00:00
|
|
|
|
|
|
|
# FTB
|
2016-02-27 18:58:40 +00:00
|
|
|
minecraft/ftb/OneSixFTBInstance.h
|
|
|
|
minecraft/ftb/OneSixFTBInstance.cpp
|
|
|
|
minecraft/ftb/LegacyFTBInstance.h
|
|
|
|
minecraft/ftb/LegacyFTBInstance.cpp
|
|
|
|
minecraft/ftb/FTBProfileStrategy.h
|
|
|
|
minecraft/ftb/FTBProfileStrategy.cpp
|
|
|
|
minecraft/ftb/FTBPlugin.h
|
|
|
|
minecraft/ftb/FTBPlugin.cpp
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
# Assets
|
|
|
|
minecraft/AssetsUtils.h
|
|
|
|
minecraft/AssetsUtils.cpp
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
# Forge and all things forge related
|
|
|
|
minecraft/forge/ForgeVersion.h
|
|
|
|
minecraft/forge/ForgeVersion.cpp
|
|
|
|
minecraft/forge/ForgeVersionList.h
|
|
|
|
minecraft/forge/ForgeVersionList.cpp
|
|
|
|
minecraft/forge/ForgeXzDownload.h
|
|
|
|
minecraft/forge/ForgeXzDownload.cpp
|
|
|
|
minecraft/forge/LegacyForge.h
|
|
|
|
minecraft/forge/LegacyForge.cpp
|
|
|
|
minecraft/forge/ForgeInstaller.h
|
|
|
|
minecraft/forge/ForgeInstaller.cpp
|
|
|
|
|
|
|
|
# Liteloader and related things
|
|
|
|
minecraft/liteloader/LiteLoaderInstaller.h
|
|
|
|
minecraft/liteloader/LiteLoaderInstaller.cpp
|
|
|
|
minecraft/liteloader/LiteLoaderVersionList.h
|
|
|
|
minecraft/liteloader/LiteLoaderVersionList.cpp
|
2016-05-12 21:51:25 +01:00
|
|
|
minecraft/SkinUpload.cpp
|
|
|
|
minecraft/SkinUpload.h
|
|
|
|
)
|
2016-04-14 00:23:54 +01:00
|
|
|
|
|
|
|
add_unit_test(GradleSpecifier
|
|
|
|
SOURCES minecraft/GradleSpecifier_test.cpp
|
|
|
|
LIBS MultiMC_logic
|
|
|
|
)
|
|
|
|
|
|
|
|
add_unit_test(MojangVersionFormat
|
|
|
|
SOURCES minecraft/MojangVersionFormat_test.cpp
|
|
|
|
LIBS MultiMC_logic
|
|
|
|
DATA minecraft/testdata
|
|
|
|
)
|
|
|
|
|
|
|
|
add_unit_test(Library
|
|
|
|
SOURCES minecraft/Library_test.cpp
|
|
|
|
LIBS MultiMC_logic
|
|
|
|
)
|
|
|
|
|
|
|
|
# FIXME: shares data with FileSystem test
|
|
|
|
add_unit_test(ModList
|
|
|
|
SOURCES minecraft/ModList_test.cpp
|
|
|
|
DATA testdata
|
|
|
|
LIBS MultiMC_logic
|
|
|
|
)
|
|
|
|
|
|
|
|
add_unit_test(ParseUtils
|
|
|
|
SOURCES minecraft/ParseUtils_test.cpp
|
|
|
|
LIBS MultiMC_logic
|
|
|
|
)
|
|
|
|
|
|
|
|
# the screenshots feature
|
|
|
|
set(SCREENSHOTS_SOURCES
|
2015-02-09 00:51:14 +00:00
|
|
|
screenshots/Screenshot.h
|
|
|
|
screenshots/ImgurUpload.h
|
|
|
|
screenshots/ImgurUpload.cpp
|
|
|
|
screenshots/ImgurAlbumCreation.h
|
|
|
|
screenshots/ImgurAlbumCreation.cpp
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
set(TASKS_SOURCES
|
2015-02-09 00:51:14 +00:00
|
|
|
# Tasks
|
|
|
|
tasks/Task.h
|
|
|
|
tasks/Task.cpp
|
|
|
|
tasks/ThreadTask.h
|
|
|
|
tasks/ThreadTask.cpp
|
|
|
|
tasks/SequentialTask.h
|
|
|
|
tasks/SequentialTask.cpp
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
set(SETTINGS_SOURCES
|
2015-02-09 00:51:14 +00:00
|
|
|
# Settings
|
|
|
|
settings/INIFile.cpp
|
|
|
|
settings/INIFile.h
|
|
|
|
settings/INISettingsObject.cpp
|
|
|
|
settings/INISettingsObject.h
|
|
|
|
settings/OverrideSetting.cpp
|
|
|
|
settings/OverrideSetting.h
|
2015-05-04 00:20:48 +01:00
|
|
|
settings/PassthroughSetting.cpp
|
|
|
|
settings/PassthroughSetting.h
|
2015-02-09 00:51:14 +00:00
|
|
|
settings/Setting.cpp
|
|
|
|
settings/Setting.h
|
|
|
|
settings/SettingsObject.cpp
|
|
|
|
settings/SettingsObject.h
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
add_unit_test(INIFile
|
|
|
|
SOURCES settings/INIFile_test.cpp
|
|
|
|
LIBS MultiMC_logic
|
|
|
|
)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
set(JAVA_SOURCES
|
2015-02-09 00:51:14 +00:00
|
|
|
# Java related code
|
2016-04-10 16:43:41 +01:00
|
|
|
java/launch/CheckJava.cpp
|
|
|
|
java/launch/CheckJava.h
|
2015-02-09 00:51:14 +00:00
|
|
|
java/JavaChecker.h
|
|
|
|
java/JavaChecker.cpp
|
|
|
|
java/JavaCheckerJob.h
|
|
|
|
java/JavaCheckerJob.cpp
|
2016-01-01 23:35:54 +00:00
|
|
|
java/JavaInstall.h
|
|
|
|
java/JavaInstall.cpp
|
|
|
|
java/JavaInstallList.h
|
|
|
|
java/JavaInstallList.cpp
|
|
|
|
java/JavaUtils.h
|
|
|
|
java/JavaUtils.cpp
|
|
|
|
java/JavaVersion.h
|
|
|
|
java/JavaVersion.cpp
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
add_unit_test(JavaVersion
|
|
|
|
SOURCES java/JavaVersion_test.cpp
|
|
|
|
LIBS MultiMC_logic
|
|
|
|
)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
set(TRANSLATIONS_SOURCES
|
2015-02-09 00:51:14 +00:00
|
|
|
# Translations
|
|
|
|
trans/TranslationDownloader.h
|
|
|
|
trans/TranslationDownloader.cpp
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
set(TOOLS_SOURCES
|
2015-02-09 00:51:14 +00:00
|
|
|
# Tools
|
|
|
|
tools/BaseExternalTool.cpp
|
|
|
|
tools/BaseExternalTool.h
|
|
|
|
tools/BaseProfiler.cpp
|
|
|
|
tools/BaseProfiler.h
|
|
|
|
tools/JProfiler.cpp
|
|
|
|
tools/JProfiler.h
|
|
|
|
tools/JVisualVM.cpp
|
|
|
|
tools/JVisualVM.h
|
|
|
|
tools/MCEditTool.cpp
|
|
|
|
tools/MCEditTool.h
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
set(WONKO_SOURCES
|
2016-04-06 22:09:30 +01:00
|
|
|
# Wonko
|
|
|
|
wonko/tasks/BaseWonkoEntityRemoteLoadTask.cpp
|
|
|
|
wonko/tasks/BaseWonkoEntityRemoteLoadTask.h
|
|
|
|
wonko/tasks/BaseWonkoEntityLocalLoadTask.cpp
|
|
|
|
wonko/tasks/BaseWonkoEntityLocalLoadTask.h
|
|
|
|
wonko/format/WonkoFormatV1.cpp
|
|
|
|
wonko/format/WonkoFormatV1.h
|
|
|
|
wonko/format/WonkoFormat.cpp
|
|
|
|
wonko/format/WonkoFormat.h
|
|
|
|
wonko/BaseWonkoEntity.cpp
|
|
|
|
wonko/BaseWonkoEntity.h
|
|
|
|
wonko/WonkoVersionList.cpp
|
|
|
|
wonko/WonkoVersionList.h
|
|
|
|
wonko/WonkoVersion.cpp
|
|
|
|
wonko/WonkoVersion.h
|
|
|
|
wonko/WonkoIndex.cpp
|
|
|
|
wonko/WonkoIndex.h
|
|
|
|
wonko/WonkoUtil.cpp
|
|
|
|
wonko/WonkoUtil.h
|
|
|
|
wonko/WonkoReference.cpp
|
|
|
|
wonko/WonkoReference.h
|
2015-02-09 00:51:14 +00:00
|
|
|
)
|
2016-04-14 00:23:54 +01:00
|
|
|
|
|
|
|
add_unit_test(WonkoIndex
|
|
|
|
SOURCES wonko/WonkoIndex_test.cpp
|
|
|
|
LIBS MultiMC_logic
|
|
|
|
)
|
|
|
|
|
2015-02-09 00:51:14 +00:00
|
|
|
################################ COMPILE ################################
|
|
|
|
|
2015-09-28 19:53:46 +01:00
|
|
|
# we need zlib
|
|
|
|
find_package(ZLIB REQUIRED)
|
2015-08-18 01:25:24 +01:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
set(LOGIC_SOURCES
|
|
|
|
${CORE_SOURCES}
|
|
|
|
${PATHMATCHER_SOURCES}
|
|
|
|
${NET_SOURCES}
|
|
|
|
${LAUNCH_SOURCES}
|
|
|
|
${UPDATE_SOURCES}
|
|
|
|
${NOTIFICATIONS_SOURCES}
|
|
|
|
${NEWS_SOURCES}
|
|
|
|
${STATUS_SOURCES}
|
|
|
|
${MINECRAFT_SOURCES}
|
|
|
|
${SCREENSHOTS_SOURCES}
|
|
|
|
${TASKS_SOURCES}
|
|
|
|
${SETTINGS_SOURCES}
|
|
|
|
${JAVA_SOURCES}
|
|
|
|
${TRANSLATIONS_SOURCES}
|
|
|
|
${TOOLS_SOURCES}
|
|
|
|
${WONKO_SOURCES}
|
2016-05-03 16:49:56 +01:00
|
|
|
${ICONS_SOURCES}
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
|
|
|
|
2015-09-05 17:46:57 +01:00
|
|
|
add_library(MultiMC_logic SHARED ${LOGIC_SOURCES})
|
2015-09-28 19:53:46 +01:00
|
|
|
set_target_properties(MultiMC_logic PROPERTIES CXX_VISIBILITY_PRESET hidden VISIBILITY_INLINES_HIDDEN 1)
|
2015-09-23 00:21:19 +01:00
|
|
|
|
2015-09-05 17:46:57 +01:00
|
|
|
generate_export_header(MultiMC_logic)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
|
|
|
# Link
|
2016-04-10 03:29:29 +01:00
|
|
|
target_link_libraries(MultiMC_logic xz-embedded unpack200 ${QUAZIP_LIBRARIES} nbt++ ${ZLIB_LIBRARIES})
|
|
|
|
qt5_use_modules(MultiMC_logic Core Xml Network Concurrent)
|
2015-02-09 00:51:14 +00:00
|
|
|
add_dependencies(MultiMC_logic QuaZIP)
|
2015-09-05 17:46:57 +01:00
|
|
|
|
2015-09-28 19:53:46 +01:00
|
|
|
# Mark and export headers
|
|
|
|
target_include_directories(MultiMC_logic PUBLIC "${CMAKE_CURRENT_BINARY_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}" PRIVATE "${ZLIB_INCLUDE_DIRS}")
|