deskflow/src/lib/common/CMakeLists.txt
sithlord48 d3c0ce8895 refactor: move all exit codes to new ExitCodes
add new exitcode s_exitDuplicate for when exiting because of already running instance
2025-08-21 12:34:50 +01:00

25 lines
538 B
CMake

# SPDX-FileCopyrightText: (C) 2024 - 2025 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-License-Identifier: MIT
set(CORE_BINARY "${CMAKE_PROJECT_NAME}-core")
if(WIN32)
string(APPEND CORE_BINARY ".exe")
endif()
configure_file(Constants.h.in Constants.h @ONLY)
unset(CLIENT_BINARY)
unset(SERVER_BINARY)
add_library(common STATIC
Common.h
ExitCodes.h
Settings.h
Settings.cpp
QSettingsProxy.cpp
QSettingsProxy.h
UrlConstants.h
${CMAKE_CURRENT_BINARY_DIR}/Constants.h
)
target_link_libraries(common PUBLIC Qt6::Core)