summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-03-09 19:46:21 +0400
committerAlexander Gavrilov2012-03-09 19:46:21 +0400
commitedf77cf270e3ff7c4a08cd85fcaf537b254f6273 (patch)
treeea12836902f56ce46460377eb7aa5f5b35f4f151 /CMakeLists.txt
parent9b071097de73dc19e5f3d5be31134810bad3e6f7 (diff)
downloaddfhack-edf77cf270e3ff7c4a08cd85fcaf537b254f6273.tar.gz
dfhack-edf77cf270e3ff7c4a08cd85fcaf537b254f6273.tar.bz2
dfhack-edf77cf270e3ff7c4a08cd85fcaf537b254f6273.tar.xz
Link protobuf to dfhack core as a shared library.
- Change protobuf libraries to build as DLLs. - Move some stream features to the lite library. - Install the lite library and use it from dfhack. Note that: - A couple of protobuf headers had to be tweaked. - The lite library is used because the full one is absolutely incompatible with reloading plugins. - Shutting down protobuf also can't be allowed.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4a5ceb74..0bf68dc1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -80,6 +80,10 @@ ENDIF()
#add depends to include path
INCLUDE_DIRECTORIES ( library/depends )
+INCLUDE_DIRECTORIES ( library/depends/protobuf/ )
+
+# use shared libraries for protobuf
+ADD_DEFINITIONS(-DPROTOBUF_USE_DLLS)
# build the static lua for dfusion
INCLUDE_DIRECTORIES ( lua/include )