2024-09-17 19:00:25 +00:00
|
|
|
# Deskflow -- mouse and keyboard sharing utility
|
2024-10-24 01:17:57 +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
|
|
|
|
|
#
|
2012-06-10 16:50:54 +00:00
|
|
|
# This package is free software; you can redistribute it and/or
|
|
|
|
|
# modify it under the terms of the GNU General Public License
|
2015-05-03 02:33:52 +00:00
|
|
|
# found in the file LICENSE that should have accompanied this file.
|
2024-07-02 10:23:56 +00:00
|
|
|
#
|
2012-06-10 16:50:54 +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 01:53:38 +00:00
|
|
|
set(target deskflow-client)
|
2012-06-10 16:50:54 +00:00
|
|
|
|
2024-07-02 10:23:56 +00:00
|
|
|
if(WIN32)
|
2024-10-24 01:17:57 +00:00
|
|
|
set(PLATFORM_SOURCES
|
2024-10-29 01:53:38 +00:00
|
|
|
deskflowc.exe.manifest
|
|
|
|
|
deskflowc.rc
|
2024-10-24 01:17:57 +00:00
|
|
|
MSWindowsClientTaskBarReceiver.cpp
|
|
|
|
|
MSWindowsClientTaskBarReceiver.h
|
|
|
|
|
resource.h
|
2024-12-19 14:48:25 +00:00
|
|
|
${PROJECT_SOURCE_DIR}/src/apps/res/deskflow.ico
|
|
|
|
|
${PROJECT_SOURCE_DIR}/src/apps/res/tb_error.ico
|
|
|
|
|
${PROJECT_SOURCE_DIR}/src/apps/res/tb_idle.ico
|
|
|
|
|
${PROJECT_SOURCE_DIR}/src/apps/res/tb_run.ico
|
2024-10-24 01:17:57 +00:00
|
|
|
${PROJECT_BINARY_DIR}/src/version.rc
|
|
|
|
|
)
|
2024-07-02 10:23:56 +00:00
|
|
|
elseif(APPLE)
|
2024-10-24 01:17:57 +00:00
|
|
|
set(PLATFORM_SOURCES
|
|
|
|
|
OSXClientTaskBarReceiver.cpp
|
|
|
|
|
OSXClientTaskBarReceiver.h
|
|
|
|
|
)
|
2024-07-02 10:23:56 +00:00
|
|
|
elseif(UNIX)
|
2024-10-24 01:17:57 +00:00
|
|
|
set(PLATFORM_SOURCES
|
|
|
|
|
XWindowsClientTaskBarReceiver.cpp
|
|
|
|
|
XWindowsClientTaskBarReceiver.h
|
|
|
|
|
)
|
2014-02-28 12:36:45 +00:00
|
|
|
endif()
|
|
|
|
|
|
2024-10-29 01:53:38 +00:00
|
|
|
add_executable(${target} ${PLATFORM_SOURCES} deskflowc.cpp)
|
2012-06-10 16:50:54 +00:00
|
|
|
|
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})
|
2012-06-10 16:50:54 +00:00
|
|
|
|
2024-07-02 10:23:56 +00:00
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
2024-11-18 23:13:12 +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-11-22 01:43:30 +00:00
|
|
|
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
|
|
|
|
install(
|
|
|
|
|
TARGETS ${target}
|
|
|
|
|
RUNTIME_DEPENDENCY_SET clientDeps
|
|
|
|
|
DESTINATION .
|
|
|
|
|
)
|
|
|
|
|
install(RUNTIME_DEPENDENCY_SET clientDeps
|
|
|
|
|
PRE_EXCLUDE_REGEXES
|
|
|
|
|
"api-ms-win-.*"
|
|
|
|
|
"ext-ms-.*"
|
|
|
|
|
"^hvsifiletrust\\.dll$"
|
|
|
|
|
POST_EXCLUDE_REGEXES
|
|
|
|
|
".*system32.*"
|
|
|
|
|
RUNTIME DESTINATION .
|
|
|
|
|
)
|
2012-06-10 16:50:54 +00:00
|
|
|
endif()
|
2024-07-18 07:04:39 +00:00
|
|
|
|