mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-02 07:05:38 +08:00
Add CMake support
This commit is contained in:
37
src/swiftguistandard/CMakeLists.txt
Normal file
37
src/swiftguistandard/CMakeLists.txt
Normal file
@@ -0,0 +1,37 @@
|
||||
# SPDX-FileCopyrightText: Copyright (C) swift Project Community / Contributors
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
||||
|
||||
add_executable(swiftguistd WIN32
|
||||
main.cpp
|
||||
swiftguistd.cpp
|
||||
swiftguistd.h
|
||||
swiftguistd.ui
|
||||
swiftguistdaircraft.cpp
|
||||
swiftguistdapplication.cpp
|
||||
swiftguistdapplication.h
|
||||
swiftguistdinit.cpp
|
||||
swiftguistdmenus.cpp
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
target_sources(swiftguistd PRIVATE data.rc)
|
||||
endif()
|
||||
|
||||
target_include_directories(swiftguistd PUBLIC ${PROJECT_SOURCE_DIR}/src)
|
||||
|
||||
target_link_libraries(swiftguistd
|
||||
PUBLIC
|
||||
Qt::Core
|
||||
misc
|
||||
gui
|
||||
core
|
||||
sound
|
||||
)
|
||||
|
||||
add_dependencies(swiftguistd resources)
|
||||
|
||||
if(WIN32)
|
||||
add_dependencies(swiftguistd copy_externals_to_build_dir)
|
||||
endif()
|
||||
|
||||
install(TARGETS swiftguistd)
|
||||
1
src/swiftguistandard/data.rc
Normal file
1
src/swiftguistandard/data.rc
Normal file
@@ -0,0 +1 @@
|
||||
swiftgui ICON "swift.ico"
|
||||
Reference in New Issue
Block a user