Skip to content

Commit 9fe74cd

Browse files
committed
fix build with different versions of protobuf
1 parent 44ca640 commit 9fe74cd

File tree

7 files changed

+7
-67116
lines changed

7 files changed

+7
-67116
lines changed

CMakeLists.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ find_package(ZLIB)
2424
# wtf cmake... automoc?
2525
qt5_wrap_cpp(moc_sources src/Lol.h)
2626

27+
protobuf_generate_cpp(protobufs_SRC protobufs_HDR
28+
src/protobufs/OakProfile.proto
29+
src/protobufs/OakSave.proto
30+
src/protobufs/OakShared.proto
31+
)
32+
2733
add_executable(borderlands3-save-editor
2834
src/main.cpp
2935
src/MainWindow.cpp
@@ -38,9 +44,7 @@ add_executable(borderlands3-save-editor
3844

3945
src/Lol.cpp
4046

41-
src/OakProfile.pb.cc
42-
src/OakSave.pb.cc
43-
src/OakShared.pb.cc
47+
${protobufs_SRC}
4448
${moc_sources}
4549

4650
data.qrc

src/OakProfile.pb.cc

Lines changed: 0 additions & 10810 deletions
This file was deleted.

src/OakProfile.pb.h

Lines changed: 0 additions & 13782 deletions
This file was deleted.

src/OakSave.pb.cc

Lines changed: 0 additions & 16656 deletions
This file was deleted.

src/OakSave.pb.h

Lines changed: 0 additions & 20506 deletions
This file was deleted.

src/OakShared.pb.cc

Lines changed: 0 additions & 2709 deletions
This file was deleted.

0 commit comments

Comments
 (0)