-
Notifications
You must be signed in to change notification settings - Fork 12
/
CMakeLists.txt
48 lines (34 loc) · 993 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
cmake_minimum_required(VERSION 3.5)
project(borderlands3-save-editor LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt5 COMPONENTS Widgets REQUIRED)
find_package(Protobuf REQUIRED)
# wtf cmake... automoc?
qt5_wrap_cpp(moc_sources src/Lol.h)
protobuf_generate_cpp(protobufs_SRC protobufs_HDR
src/protobufs/OakProfile.proto
src/protobufs/OakSave.proto
src/protobufs/OakShared.proto
)
add_executable(borderlands3-save-editor
src/main.cpp
src/MainWindow.cpp
src/Savegame.cpp
src/Constants.cpp
src/GeneralTab.cpp
src/InventoryTab.cpp
src/GameSettingsTab.cpp
src/ConsumablesTab.cpp
src/ItemData.cpp
src/MissionsTab.cpp
src/Lol.cpp
${protobufs_SRC}
${moc_sources}
data.qrc
)
target_link_libraries(borderlands3-save-editor PRIVATE Qt5::Widgets protobuf::libprotobuf)