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