2024-07-02 10:23:56 +00:00
|
|
|
# Synergy -- mouse and keyboard sharing utility
|
|
|
|
|
# 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/>.
|
|
|
|
|
|
2014-02-28 13:56:07 +00:00
|
|
|
file(GLOB_RECURSE headers "*.h")
|
|
|
|
|
file(GLOB_RECURSE sources "*.cpp")
|
|
|
|
|
|
|
|
|
|
# remove platform files (specific platform added later).
|
2014-03-14 18:32:34 +00:00
|
|
|
file(GLOB_RECURSE remove_platform "platform/*")
|
2014-02-28 13:56:07 +00:00
|
|
|
list(REMOVE_ITEM headers ${remove_platform})
|
|
|
|
|
list(REMOVE_ITEM sources ${remove_platform})
|
2012-06-10 16:50:54 +00:00
|
|
|
|
2014-02-05 14:29:50 +00:00
|
|
|
# platform
|
2024-07-02 10:23:56 +00:00
|
|
|
if(WIN32)
|
|
|
|
|
file(GLOB platform_sources "platform/MSWindows*.cpp")
|
|
|
|
|
file(GLOB platform_headers "platform/MSWindows*.h")
|
|
|
|
|
elseif(APPLE)
|
|
|
|
|
file(GLOB platform_sources "platform/OSX*.cpp")
|
|
|
|
|
file(GLOB platform_headers "platform/OSX*.h")
|
|
|
|
|
elseif(UNIX)
|
|
|
|
|
file(GLOB platform_sources "platform/XWindows*.cpp")
|
|
|
|
|
file(GLOB platform_headers "platform/XWindows*.h")
|
2014-02-26 17:46:02 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
list(APPEND sources ${platform_sources})
|
|
|
|
|
list(APPEND headers ${platform_headers})
|
|
|
|
|
|
2024-07-17 08:22:46 +00:00
|
|
|
file(GLOB_RECURSE shared_headers "../../test/shared/*.h")
|
|
|
|
|
file(GLOB_RECURSE shared_sources "../../test/shared/*.cpp")
|
2014-02-28 13:56:07 +00:00
|
|
|
|
2024-07-17 08:22:46 +00:00
|
|
|
list(APPEND headers ${shared_headers})
|
|
|
|
|
list(APPEND sources ${shared_sources})
|
2014-02-28 13:56:07 +00:00
|
|
|
|
|
|
|
|
file(GLOB_RECURSE mock_headers "../../test/mock/*.h")
|
|
|
|
|
file(GLOB_RECURSE mock_sources "../../test/mock/*.cpp")
|
|
|
|
|
|
|
|
|
|
list(APPEND headers ${mock_headers})
|
|
|
|
|
list(APPEND sources ${mock_sources})
|
|
|
|
|
|
2024-07-02 10:23:56 +00:00
|
|
|
if(SYNERGY_ADD_HEADERS)
|
|
|
|
|
list(APPEND sources ${headers})
|
2012-06-10 16:50:54 +00:00
|
|
|
endif()
|
|
|
|
|
|
2024-07-02 10:23:56 +00:00
|
|
|
if(WIN32)
|
|
|
|
|
list(APPEND sources ${CMAKE_BINARY_DIR}/src/version.rc)
|
2024-06-28 09:35:18 +00:00
|
|
|
endif()
|
|
|
|
|
|
2014-02-26 17:46:02 +00:00
|
|
|
include_directories(
|
2024-07-02 10:23:56 +00:00
|
|
|
../../ ../../lib/ ../../../ext/googletest/googletest/include
|
|
|
|
|
../../../ext/googletest/googlemock/include)
|
2012-06-10 16:50:54 +00:00
|
|
|
|
2014-02-26 17:46:02 +00:00
|
|
|
add_executable(integtests ${sources})
|
2024-07-02 10:23:56 +00:00
|
|
|
target_link_libraries(
|
|
|
|
|
integtests
|
|
|
|
|
arch
|
|
|
|
|
base
|
|
|
|
|
client
|
|
|
|
|
common
|
|
|
|
|
io
|
|
|
|
|
ipc
|
|
|
|
|
mt
|
|
|
|
|
net
|
|
|
|
|
platform
|
|
|
|
|
server
|
|
|
|
|
synlib
|
|
|
|
|
gtest
|
|
|
|
|
gmock
|
|
|
|
|
${libs})
|