Add CMake support

This commit is contained in:
Lars Toenning
2023-10-31 22:00:24 +01:00
parent 3ffb8f689b
commit 1deaeba584
94 changed files with 4864 additions and 248 deletions

View File

@@ -0,0 +1,32 @@
# SPDX-FileCopyrightText: Copyright (C) swift Project Community / Contributors
# SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
add_executable(swiftlauncher WIN32
main.cpp
swiftlauncher.cpp
swiftlauncher.h
swiftlauncher.ui
swiftlauncher.qrc
)
if(WIN32)
target_sources(swiftlauncher PRIVATE data.rc)
endif()
target_include_directories(swiftlauncher PUBLIC ${PROJECT_SOURCE_DIR}/src)
target_link_libraries(swiftlauncher
PUBLIC
Qt::Core
misc
gui
core
)
add_dependencies(swiftlauncher resources)
if(WIN32)
add_dependencies(swiftlauncher copy_externals_to_build_dir)
endif()
install(TARGETS swiftlauncher)

View File

@@ -0,0 +1 @@
swiftlauncher ICON "swiftlauncher.ico"