-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
57 lines (44 loc) · 1.68 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
55
56
cmake_minimum_required(VERSION 3.14)
project(SpriteLauncher LANGUAGES CXX)
include(version.cmake)
configure_file(templates/version.h.in ${PROJECT_SOURCE_DIR}/src/version.h)
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(QT NAMES Qt6)
find_package(Qt6 REQUIRED COMPONENTS Core Network Gui Widgets UiTools)
add_executable(SpriteLauncher
src/main.cpp
src/downloadmanager.h src/downloadmanager.cpp
src/configloader.h src/configloader.cpp
src/version.h
src/filefunctions.h src/filefunctions.cpp
src/launcher.h src/launcher.cpp
src/launcheruserinterface.h src/launcheruserinterface.cpp
src/settingsuserdialog.h src/settingsuserdialog.cpp
src/download.h src/download.cpp
src/temporarydirectory.h src/temporarydirectory.cpp
src/gui_utils.h
src/packages/serverinformation.h src/packages/serverinformation.cpp
src/packages/contentinformation.h src/packages/contentinformation.cpp
src/packages/packageinformation.h src/packages/packageinformation.cpp
src/dependecywalker.h src/dependecywalker.cpp
data/data.qrc
)
target_link_libraries(SpriteLauncher PRIVATE
Qt6::Core
Qt6::Gui
Qt6::Widgets
Qt6::Network
Qt6::UiTools
)
set_target_properties(SpriteLauncher PROPERTIES
LIBRARY_OUTPUT_DIRECTORY $<1:${CMAKE_CURRENT_LIST_DIR}/bin>
RUNTIME_OUTPUT_DIRECTORY $<1:${CMAKE_CURRENT_LIST_DIR}/bin>)
if(WIN32)
set_property(TARGET SpriteLauncher PROPERTY WIN32_EXECUTABLE true)
set(APP_ICON_RESOURCE_WINDOWS "${CMAKE_CURRENT_SOURCE_DIR}/data/logo/logo.rc")
target_sources(SpriteLauncher PRIVATE ${APP_ICON_RESOURCE_WINDOWS})
endif()