2024-09-17 19:00:25 +00:00
|
|
|
# Deskflow -- mouse and keyboard sharing utility
|
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-01 13:30:24 +00:00
|
|
|
set(target ${CORE_BINARY_NAME})
|
2024-07-02 10:23:56 +00:00
|
|
|
set(sources ${target}.cpp)
|
2022-11-29 19:00:37 +00:00
|
|
|
|
2024-07-02 10:23:56 +00:00
|
|
|
if(WIN32)
|
2024-10-01 13:30:24 +00:00
|
|
|
list(APPEND sources ${target}.exe.manifest
|
|
|
|
|
${PROJECT_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})
|
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-09-17 19:00:25 +00:00
|
|
|
install(TARGETS ${target} DESTINATION ${DESKFLOW_BUNDLE_BINARY_DIR})
|
2024-07-02 10:23:56 +00:00
|
|
|
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
|
|
|
|
install(TARGETS ${target} DESTINATION bin)
|
2022-11-29 19:00:37 +00:00
|
|
|
endif()
|