deskflow/cmake/CMakeLists_synergyc.txt
2011-04-25 16:52:35 +00:00

84 lines
2.2 KiB
Text

# synergy -- mouse and keyboard sharing utility
# Copyright (C) 2009 Chris Schoeneman, Nick Bolton, Sorin Sbarnea
#
# 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 COPYING 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/>.
set(root_cmd_synergyc ${root_dir}/cmd/synergyc)
set(src_cmd_synergyc_common
${root_cmd_synergyc}/synergyc.cpp
)
set(src_cmd_synergyc_xwindows
${root_cmd_synergyc}/CXWindowsClientTaskBarReceiver.cpp
)
set(src_cmd_synergyc_mswindows
${root_cmd_synergyc}/CMSWindowsClientTaskBarReceiver.cpp
)
set(inc_cmd_synergyc_mswindows
${root_cmd_synergyc}/CMSWindowsClientTaskBarReceiver.h
${root_cmd_synergyc}/resource.h
)
set(res_cmd_synergyc_mswindows
${root_cmd_synergyc}/synergyc.ico
${root_cmd_synergyc}/synergyc.rc
${root_cmd_synergyc}/tb_error.ico
${root_cmd_synergyc}/tb_idle.ico
${root_cmd_synergyc}/tb_run.ico
${root_cmd_synergyc}/tb_wait.ico
)
set(src_cmd_synergyc_carbon
${root_cmd_synergyc}/COSXClientTaskBarReceiver.cpp
)
set(src_cmd_synergyc ${src_cmd_synergyc_common})
if (UNIX)
if (APPLE)
list(APPEND src_cmd_synergyc ${src_cmd_synergyc_carbon})
else (APPLE)
list(APPEND src_cmd_synergyc ${src_cmd_synergyc_xwindows})
endif()
else (UNIX)
list(APPEND src_cmd_synergyc
${inc_cmd_synergyc_mswindows}
${res_cmd_synergyc_mswindows}
${src_cmd_synergyc_mswindows}
)
endif()
set(inc_dirs_cmd_synergyc
${root_dir}
${root_dir}/lib
${root_dir}/lib/arch
${root_dir}/lib/base
${root_dir}/lib/client
${root_dir}/lib/common
${root_dir}/lib/io
${root_dir}/lib/mt
${root_dir}/lib/net
${root_dir}/lib/platform
${root_dir}/lib/synergy
)
include_directories(${inc_dirs_cmd_synergyc})
add_executable(synergyc ${src_cmd_synergyc})
target_link_libraries(synergyc synergy ${libs})