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

84 lines
2.4 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/>.
if (WIN32)
set(root_cmd_launcher ${root_dir}/cmd/launcher)
set(src_cmd_launcher_mswindows
${root_cmd_launcher}/CAddScreen.cpp
${root_cmd_launcher}/CAdvancedOptions.cpp
${root_cmd_launcher}/CAutoStart.cpp
${root_cmd_launcher}/CGlobalOptions.cpp
${root_cmd_launcher}/CHotkeyOptions.cpp
${root_cmd_launcher}/CInfo.cpp
${root_cmd_launcher}/CScreensLinks.cpp
${root_cmd_launcher}/LaunchUtil.cpp
${root_cmd_launcher}/launcher.cpp
)
set(inc_cmd_launcher_mswindows
${root_cmd_launcher}/CAddScreen.h
${root_cmd_launcher}/CAdvancedOptions.h
${root_cmd_launcher}/CAutoStart.h
${root_cmd_launcher}/CGlobalOptions.h
${root_cmd_launcher}/CHotkeyOptions.h
${root_cmd_launcher}/CInfo.h
${root_cmd_launcher}/CScreensLinks.h
${root_cmd_launcher}/LaunchUtil.h
${root_cmd_launcher}/resource.h
)
set(res_cmd_launcher_mswindows
${root_cmd_launcher}/launcher.rc
${root_cmd_launcher}/synergy.ico
)
set(src_cmd_launcher)
if (UNIX)
if (APPLE)
list(APPEND src_cmd_launcher ${src_cmd_launcher_carbon})
else (APPLE)
list(APPEND src_cmd_launcher ${src_cmd_launcher_xwindows})
endif()
endif()
if (WIN32)
list(APPEND src_cmd_launcher
${inc_cmd_launcher_mswindows}
${res_cmd_launcher_mswindows}
${src_cmd_launcher_mswindows}
)
endif()
set(inc_dirs_cmd_launcher
${root_dir}
${root_dir}/lib
${root_dir}/lib/arch
${root_dir}/lib/base
${root_dir}/lib/common
${root_dir}/lib/io
${root_dir}/lib/mt
${root_dir}/lib/net
${root_dir}/lib/platform
${root_dir}/lib/synergy
${root_dir}/lib/server
)
include_directories(${inc_dirs_cmd_launcher})
add_executable(launcher WIN32 ${src_cmd_launcher})
target_link_libraries(launcher synergy ${libs})
endif()