mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-09 13:35:34 +08:00
Add CMake support
This commit is contained in:
51
src/plugins/simulator/fsxcommon/CMakeLists.txt
Normal file
51
src/plugins/simulator/fsxcommon/CMakeLists.txt
Normal file
@@ -0,0 +1,51 @@
|
||||
# SPDX-FileCopyrightText: Copyright (C) swift Project Community / Contributors
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
||||
|
||||
add_library(fsxcommon SHARED
|
||||
simconnectsymbols.cpp
|
||||
simconnectsymbols.h
|
||||
fsxsettingscomponent.cpp
|
||||
fsxsettingscomponent.h
|
||||
fsxsettingscomponent.ui
|
||||
simconnectdatadefinition.cpp
|
||||
simconnectdatadefinition.h
|
||||
simconnectobject.cpp
|
||||
simconnectobject.h
|
||||
simconnectsettingscomponent.cpp
|
||||
simconnectsettingscomponent.h
|
||||
simconnectsettingscomponent.ui
|
||||
simconnectwindows.h
|
||||
simulatorfsxcommon.cpp
|
||||
simulatorfsxcommon.h
|
||||
simulatorfsxconfigwindow.cpp
|
||||
simulatorfsxconfigwindow.h
|
||||
simulatorfsxconfigwindow.ui
|
||||
simulatorfsxsimconnectproc.cpp
|
||||
simconnect.rc
|
||||
#SimConnect_RTM.manifest
|
||||
#SimConnect_SP1.manifest
|
||||
#SimConnect_XPack.manifest
|
||||
fsxcommonexport.h
|
||||
)
|
||||
|
||||
set_target_properties(fsxcommon PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/out/bin)
|
||||
set_target_properties(fsxcommon PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/out/bin)
|
||||
|
||||
target_link_libraries(fsxcommon
|
||||
PUBLIC
|
||||
Qt::Core
|
||||
misc
|
||||
Qt::Widgets
|
||||
externals_simconnect
|
||||
PRIVATE
|
||||
gui
|
||||
fscommon
|
||||
blackconfig
|
||||
)
|
||||
|
||||
target_compile_definitions(fsxcommon PRIVATE BUILD_FSXCOMMON_LIB)
|
||||
|
||||
install(TARGETS fsxcommon
|
||||
LIBRARY DESTINATION bin
|
||||
RUNTIME DESTINATION bin
|
||||
)
|
||||
Reference in New Issue
Block a user