summaryrefslogtreecommitdiffstats
path: root/logic/CMakeLists.txt
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-09-05 18:46:57 +0200
committerPetr Mrázek <peterix@gmail.com>2015-09-05 18:46:57 +0200
commit23d0bd8edde6aadfaa282215b5f143ad16210438 (patch)
treea14d3f47b51716fb784cb426eedd0a2e2d756b4f /logic/CMakeLists.txt
parentcd108fd02975eac3a3fed2fde26c58de5cbdaf1c (diff)
downloadMultiMC-23d0bd8edde6aadfaa282215b5f143ad16210438.tar
MultiMC-23d0bd8edde6aadfaa282215b5f143ad16210438.tar.gz
MultiMC-23d0bd8edde6aadfaa282215b5f143ad16210438.tar.lz
MultiMC-23d0bd8edde6aadfaa282215b5f143ad16210438.tar.xz
MultiMC-23d0bd8edde6aadfaa282215b5f143ad16210438.zip
NOISSUE make shared logic library ... shared
Diffstat (limited to 'logic/CMakeLists.txt')
-rw-r--r--logic/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/logic/CMakeLists.txt b/logic/CMakeLists.txt
index fce89ac8..1f6b62bf 100644
--- a/logic/CMakeLists.txt
+++ b/logic/CMakeLists.txt
@@ -308,7 +308,9 @@ if(WIN32)
endif()
# Add common library
-add_library(MultiMC_logic STATIC ${LOGIC_SOURCES})
+add_library(MultiMC_logic SHARED ${LOGIC_SOURCES})
+
+generate_export_header(MultiMC_logic)
# Use system zlib on unix and Qt ZLIB on Windows
if(UNIX)
@@ -328,3 +330,5 @@ target_link_libraries(MultiMC_logic xz-embedded unpack200 iconfix libUtil Logica
${ZLIB_LIBRARIES} ${MultiMC_LINK_ADDITIONAL_LIBS})
add_dependencies(MultiMC_logic QuaZIP)
+
+include_directories(${CMAKE_CURRENT_BINARY_DIR})