-
Notifications
You must be signed in to change notification settings - Fork 42
/
CMakeLists.txt
54 lines (49 loc) · 1.23 KB
/
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
49
50
51
52
53
54
cmake_minimum_required(VERSION 3.11)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
project(qzdl LANGUAGES C CXX)
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core Widgets)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Widgets REQUIRED)
include(FetchContent)
FetchContent_Declare(
inih
GIT_REPOSITORY https://github.com/benhoyt/inih.git
GIT_TAG r44
)
FetchContent_GetProperties(inih)
if (NOT inih_POPULATED)
FetchContent_Populate(inih)
endif()
add_executable(
zdl
ZDLAboutDialog.cpp
ZDLAdvancedMultiplayerDialog.cpp
ZDLDMFlagCheckbox.cpp
ZDLDMFlagManager.cpp
ZDLFileList.cpp
ZDLFileListable.cpp
ZDLFilePane.cpp
ZDLIWadList.cpp
ZDLInfoBar.cpp
ZDLInterface.cpp
ZDLListWidget.cpp
ZDLListable.cpp
ZDLMainWindow.cpp
ZDLMapFile.cpp
ZDLMultiPane.cpp
ZDLNameInput.cpp
ZDLNameListable.cpp
ZDLQSplitter.cpp
ZDLSettingsPane.cpp
ZDLSettingsTab.cpp
ZDLSourcePortList.cpp
ZDLWidget.cpp
ZDMFlagPicker.cpp
libwad.cpp
qzdl.cpp
${PROJECT_SOURCE_DIR}/zdlconf/zdlconf.cpp
${inih_SOURCE_DIR}/ini.c
)
target_include_directories(zdl PRIVATE ${PROJECT_SOURCE_DIR}/zdlconf)
target_include_directories(zdl PRIVATE ${inih_SOURCE_DIR})
target_link_libraries(zdl Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Widgets)