summaryrefslogtreecommitdiffstats
path: root/libinstance
diff options
context:
space:
mode:
authorAndrew <forkk@forkk.net>2013-02-20 08:32:26 -0600
committerAndrew <forkk@forkk.net>2013-02-20 08:32:59 -0600
commitf71479ec33562c9a0ebbdb335bef5e2824a12710 (patch)
tree198479995279a2a9eaa04fce405ee05b0c7df482 /libinstance
parent6e5017e48b633e20bbba61ac2e7cd58e693aec4e (diff)
downloadMultiMC-f71479ec33562c9a0ebbdb335bef5e2824a12710.tar
MultiMC-f71479ec33562c9a0ebbdb335bef5e2824a12710.tar.gz
MultiMC-f71479ec33562c9a0ebbdb335bef5e2824a12710.tar.lz
MultiMC-f71479ec33562c9a0ebbdb335bef5e2824a12710.tar.xz
MultiMC-f71479ec33562c9a0ebbdb335bef5e2824a12710.zip
Added stdinstance plugin and a ton of plugin stuff.
Diffstat (limited to 'libinstance')
-rw-r--r--libinstance/CMakeLists.txt31
1 files changed, 31 insertions, 0 deletions
diff --git a/libinstance/CMakeLists.txt b/libinstance/CMakeLists.txt
new file mode 100644
index 00000000..503bda75
--- /dev/null
+++ b/libinstance/CMakeLists.txt
@@ -0,0 +1,31 @@
+project(stdinstance)
+
+ADD_DEFINITIONS(-DQT_PLUGIN)
+
+# Find Qt
+find_package(Qt5Core REQUIRED)
+find_package(Qt5Network REQUIRED)
+
+# Include Qt headers.
+include_directories(${Qt5Base_INCLUDE_DIRS})
+include_directories(${Qt5Network_INCLUDE_DIRS})
+
+# Include MultiMC's headers.
+include_directories(../../)
+
+SET(STDINST_HEADERS
+stdinstplugin.h
+stdinstancetype.h
+stdinstance.h
+)
+
+SET(STDINST_SOURCES
+stdinstplugin.cpp
+stdinstancetype.cpp
+stdinstance.cpp
+)
+
+add_library(stdinstance SHARED ${STDINST_SOURCES} ${STDINST_HEADERS})
+set_target_properties(stdinstance PROPERTIES PREFIX "")
+qt5_use_modules(stdinstance Core Network)
+target_link_libraries(stdinstance quazip patchlib)