2013-07-29 04:29:35 +05:30
|
|
|
project(libMultiMC)
|
|
|
|
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
|
|
|
|
# Find Qt
|
|
|
|
find_package(Qt5Core REQUIRED)
|
|
|
|
find_package(Qt5Network REQUIRED)
|
|
|
|
find_package(Qt5Xml REQUIRED)
|
|
|
|
|
|
|
|
# Include Qt headers.
|
|
|
|
include_directories(${Qt5Base_INCLUDE_DIRS})
|
|
|
|
include_directories(${Qt5Network_INCLUDE_DIRS})
|
|
|
|
|
|
|
|
# Include utility library.
|
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/libutil/include)
|
|
|
|
|
|
|
|
# Include settings library.
|
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/libsettings/include)
|
|
|
|
|
|
|
|
SET(LIBINST_HEADERS
|
|
|
|
libmmc_config.h
|
|
|
|
|
2013-08-04 18:16:33 +05:30
|
|
|
# Base classes and infrastructure
|
|
|
|
InstanceVersion.h
|
|
|
|
MinecraftVersion.h
|
|
|
|
InstanceFactory.h
|
2013-08-07 05:08:18 +05:30
|
|
|
BaseUpdate.h
|
2013-07-29 04:29:35 +05:30
|
|
|
BaseInstance.h
|
2013-08-04 18:16:33 +05:30
|
|
|
BaseInstance_p.h
|
|
|
|
MinecraftProcess.h
|
2013-08-14 11:43:41 +05:30
|
|
|
Mod.h
|
|
|
|
ModList.h
|
2013-08-04 18:16:33 +05:30
|
|
|
|
2013-08-07 05:08:18 +05:30
|
|
|
# network stuffs
|
|
|
|
net/DownloadJob.h
|
|
|
|
net/JobQueue.h
|
|
|
|
net/NetWorker.h
|
|
|
|
|
2013-08-04 18:16:33 +05:30
|
|
|
# legacy instances
|
2013-07-29 04:29:35 +05:30
|
|
|
LegacyInstance.h
|
2013-08-04 18:16:33 +05:30
|
|
|
LegacyInstance_p.h
|
2013-08-07 05:08:18 +05:30
|
|
|
LegacyUpdate.h
|
2013-08-14 11:43:41 +05:30
|
|
|
LegacyForge.h
|
2013-07-29 04:29:35 +05:30
|
|
|
|
2013-08-04 18:16:33 +05:30
|
|
|
# 1.6 instances
|
2013-08-04 03:28:39 +05:30
|
|
|
OneSixAssets.h
|
2013-08-04 18:16:33 +05:30
|
|
|
OneSixInstance.h
|
|
|
|
OneSixInstance_p.h
|
|
|
|
OneSixUpdate.h
|
2013-07-29 04:29:35 +05:30
|
|
|
OneSixVersion.h
|
|
|
|
VersionFactory.h
|
|
|
|
|
2013-08-11 22:28:24 +05:30
|
|
|
# Nostalgia
|
|
|
|
NostalgiaInstance.h
|
|
|
|
|
2013-07-29 04:29:35 +05:30
|
|
|
# Lists
|
|
|
|
lists/InstanceList.h
|
|
|
|
lists/InstVersionList.h
|
|
|
|
lists/MinecraftVersionList.h
|
|
|
|
lists/LwjglVersionList.h
|
2013-08-10 22:04:08 +05:30
|
|
|
IconListModel.h
|
2013-07-29 04:29:35 +05:30
|
|
|
|
|
|
|
# Tasks
|
|
|
|
tasks/Task.h
|
|
|
|
tasks/LoginTask.h
|
|
|
|
)
|
|
|
|
|
|
|
|
SET(LIBINST_SOURCES
|
2013-08-04 18:16:33 +05:30
|
|
|
# Base classes and infrastructure
|
|
|
|
InstanceFactory.cpp
|
2013-08-07 05:08:18 +05:30
|
|
|
BaseUpdate.cpp
|
2013-07-29 04:29:35 +05:30
|
|
|
BaseInstance.cpp
|
2013-08-04 18:16:33 +05:30
|
|
|
MinecraftProcess.cpp
|
2013-08-14 11:43:41 +05:30
|
|
|
Mod.cpp
|
|
|
|
ModList.cpp
|
2013-08-04 18:16:33 +05:30
|
|
|
|
2013-08-07 05:08:18 +05:30
|
|
|
# network stuffs
|
|
|
|
net/NetWorker.cpp
|
|
|
|
net/DownloadJob.cpp
|
|
|
|
|
2013-08-04 18:16:33 +05:30
|
|
|
# legacy instances
|
2013-07-29 04:29:35 +05:30
|
|
|
LegacyInstance.cpp
|
2013-08-07 05:08:18 +05:30
|
|
|
LegacyUpdate.cpp
|
2013-08-14 11:43:41 +05:30
|
|
|
LegacyForge.cpp
|
2013-07-29 04:29:35 +05:30
|
|
|
|
2013-08-04 18:16:33 +05:30
|
|
|
# 1.6 instances
|
2013-08-04 03:28:39 +05:30
|
|
|
OneSixAssets.cpp
|
2013-08-04 18:16:33 +05:30
|
|
|
OneSixInstance.cpp
|
2013-07-29 04:29:35 +05:30
|
|
|
OneSixVersion.cpp
|
2013-08-04 18:16:33 +05:30
|
|
|
OneSixUpdate.cpp
|
2013-07-29 04:29:35 +05:30
|
|
|
VersionFactory.cpp
|
|
|
|
|
2013-08-11 22:28:24 +05:30
|
|
|
# Nostalgia
|
|
|
|
NostalgiaInstance.cpp
|
|
|
|
|
2013-07-29 04:29:35 +05:30
|
|
|
# Lists
|
|
|
|
lists/InstanceList.cpp
|
|
|
|
lists/InstVersionList.cpp
|
|
|
|
lists/MinecraftVersionList.cpp
|
|
|
|
lists/LwjglVersionList.cpp
|
2013-08-10 22:04:08 +05:30
|
|
|
IconListModel.cpp
|
2013-07-29 04:29:35 +05:30
|
|
|
|
|
|
|
# Tasks
|
|
|
|
tasks/Task.cpp
|
|
|
|
tasks/LoginTask.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
# Set the include dir path.
|
|
|
|
SET(LIBMULTIMC_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}" PARENT_SCOPE)
|
|
|
|
|
|
|
|
# Include self.
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
include_directories(${CMAKE_BINARY_DIR}/include)
|
|
|
|
|
|
|
|
add_definitions(-DLIBMULTIMC_LIBRARY)
|
|
|
|
|
|
|
|
add_library(backend SHARED ${LIBINST_SOURCES} ${LIBINST_HEADERS})
|
|
|
|
qt5_use_modules(backend Core Network Xml)
|
2013-08-05 06:59:50 +05:30
|
|
|
target_link_libraries(backend libUtil libSettings quazip)
|
2013-08-03 19:27:33 +05:30
|
|
|
|