2024-09-17 19:00:25 +00:00
|
|
|
# Deskflow -- mouse and keyboard sharing utility
|
2024-10-24 01:43:22 +00:00
|
|
|
# Copyright (C) 2024 Chris Rizzitello <sithlord48@gmail.com>
|
2024-07-02 10:23:56 +00:00
|
|
|
# Copyright (C) 2012-2024 Symless Ltd.
|
|
|
|
|
# Copyright (C) 2009-2012 Nick Bolton
|
|
|
|
|
#
|
2022-11-29 19:00:37 +00:00
|
|
|
# This package is free software; you can redistribute it and/or
|
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
|
# found in the file LICENSE that should have accompanied this file.
|
2024-07-02 10:23:56 +00:00
|
|
|
#
|
2022-11-29 19:00:37 +00:00
|
|
|
# This package is distributed in the hope that it will be useful,
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
#
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
2024-10-29 02:16:05 +00:00
|
|
|
set(target deskflow-core)
|
2022-11-29 19:00:37 +00:00
|
|
|
|
2024-10-24 01:43:22 +00:00
|
|
|
add_executable(${target} "${target}.cpp")
|
2024-07-02 10:23:56 +00:00
|
|
|
if(WIN32)
|
2025-01-10 16:07:15 +00:00
|
|
|
# Generate rc file
|
|
|
|
|
set(EXE_DESCRIPTION "${CMAKE_PROJECT_DESCRIPTION}\\n CLI combined server and client")
|
|
|
|
|
configure_file(${CMAKE_SOURCE_DIR}/src/apps/res/rc_template.rc.in deskflow-core.rc)
|
|
|
|
|
|
2024-10-24 01:43:22 +00:00
|
|
|
target_sources(${target} PRIVATE
|
|
|
|
|
"${target}.exe.manifest"
|
2025-01-10 16:07:15 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/deskflow-core.rc
|
2024-10-24 01:43:22 +00:00
|
|
|
)
|
2022-12-13 15:58:06 +00:00
|
|
|
endif()
|
|
|
|
|
|
2024-07-02 10:23:56 +00:00
|
|
|
target_link_libraries(
|
|
|
|
|
${target}
|
|
|
|
|
arch
|
|
|
|
|
base
|
|
|
|
|
client
|
|
|
|
|
io
|
|
|
|
|
mt
|
|
|
|
|
net
|
|
|
|
|
ipc
|
|
|
|
|
platform
|
|
|
|
|
server
|
2024-09-17 19:00:25 +00:00
|
|
|
app
|
2024-07-02 10:23:56 +00:00
|
|
|
${libs})
|
2022-11-29 19:00:37 +00:00
|
|
|
|
2024-07-02 10:23:56 +00:00
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
2024-12-05 18:33:27 +00:00
|
|
|
set_target_properties(${target} PROPERTIES RUNTIME_OUTPUT_DIRECTORY $<TARGET_BUNDLE_CONTENT_DIR:Deskflow>/MacOS)
|
2024-07-02 10:23:56 +00:00
|
|
|
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
|
|
|
|
install(TARGETS ${target} DESTINATION bin)
|
2024-12-05 18:33:27 +00:00
|
|
|
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
|
|
|
|
install(
|
|
|
|
|
TARGETS ${target}
|
|
|
|
|
RUNTIME_DEPENDENCY_SET coreDeps
|
|
|
|
|
DESTINATION .
|
|
|
|
|
)
|
|
|
|
|
install(RUNTIME_DEPENDENCY_SET coreDeps
|
|
|
|
|
PRE_EXCLUDE_REGEXES
|
|
|
|
|
"api-ms-win-.*"
|
|
|
|
|
"ext-ms-.*"
|
|
|
|
|
"^hvsifiletrust\\.dll$"
|
|
|
|
|
POST_EXCLUDE_REGEXES
|
|
|
|
|
".*system32.*"
|
|
|
|
|
RUNTIME DESTINATION .
|
|
|
|
|
)
|
2022-11-29 19:00:37 +00:00
|
|
|
endif()
|