2022-11-29 19:00:37 +00:00
|
|
|
# synergy -- mouse and keyboard sharing utility
|
|
|
|
|
# Copyright (C) 2012-2022 Symless Ltd.
|
|
|
|
|
# Copyright (C) 2009 Nick Bolton
|
|
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
#
|
|
|
|
|
# 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-06-28 09:35:18 +00:00
|
|
|
set(target synergy-core)
|
|
|
|
|
|
2022-11-29 19:00:37 +00:00
|
|
|
set(sources
|
2024-06-28 09:35:18 +00:00
|
|
|
${target}.cpp
|
2022-11-29 19:00:37 +00:00
|
|
|
)
|
|
|
|
|
|
2022-12-13 15:58:06 +00:00
|
|
|
if (WIN32)
|
2024-06-28 09:35:18 +00:00
|
|
|
list(APPEND sources
|
|
|
|
|
${target}.exe.manifest
|
|
|
|
|
${CMAKE_BINARY_DIR}/src/version.rc
|
|
|
|
|
)
|
2022-12-13 15:58:06 +00:00
|
|
|
endif()
|
|
|
|
|
|
2024-06-28 09:35:18 +00:00
|
|
|
add_executable(${target} ${sources})
|
|
|
|
|
target_link_libraries(${target}
|
2022-11-29 19:00:37 +00:00
|
|
|
arch base client common io mt net ipc platform server synlib ${libs})
|
|
|
|
|
|
|
|
|
|
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
2024-06-28 09:35:18 +00:00
|
|
|
install (TARGETS ${target} DESTINATION ${SYNERGY_BUNDLE_BINARY_DIR})
|
2022-11-29 19:00:37 +00:00
|
|
|
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
2024-06-28 09:35:18 +00:00
|
|
|
install (TARGETS ${target} DESTINATION bin)
|
2022-11-29 19:00:37 +00:00
|
|
|
endif()
|
|
|
|
|
|