diff options
| author | Alexander Gavrilov | 2012-03-09 19:46:21 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-03-09 19:46:21 +0400 |
| commit | edf77cf270e3ff7c4a08cd85fcaf537b254f6273 (patch) | |
| tree | ea12836902f56ce46460377eb7aa5f5b35f4f151 /CMakeLists.txt | |
| parent | 9b071097de73dc19e5f3d5be31134810bad3e6f7 (diff) | |
| download | dfhack-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.txt | 4 |
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 ) |
