deskflow/src/test/integtests/CMakeLists.txt

79 lines
2.1 KiB
CMake
Raw Normal View History

2012-06-10 16:50:54 +00:00
# synergy -- mouse and keyboard sharing utility
# Copyright (C) 2012 Bolton Software Ltd.
# Copyright (C) 2009 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
# 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/>.
file(GLOB headers "*.h")
file(GLOB sources "*.cpp")
2012-06-10 16:50:54 +00:00
2014-02-05 14:29:50 +00:00
# arch
if (WIN32)
file(GLOB arch_sources "arch/CArchWindows*.cpp")
file(GLOB arch_headers "arch/CArchWindows*.h")
2014-02-05 14:29:50 +00:00
elseif (UNIX)
file(GLOB arch_sources "arch/CArchUnix*.cpp")
file(GLOB arch_headers "arch/CArchUnix*.h")
2014-02-05 14:29:50 +00:00
endif()
list(APPEND sources ${arch_sources})
list(APPEND headers ${arch_headers})
2014-02-05 14:29:50 +00:00
# platform
2012-06-10 16:50:54 +00:00
if (WIN32)
file(GLOB platform_sources "platform/CMSWindows*.cpp")
file(GLOB platform_headers "platform/CMSWindows*.h")
2012-06-10 16:50:54 +00:00
elseif (APPLE)
file(GLOB platform_sources "platform/COSX*.cpp")
file(GLOB platform_headers "platform/COSX*.h")
2012-06-10 16:50:54 +00:00
elseif (UNIX)
file(GLOB platform_sources "platform/CXWindows*.cpp")
file(GLOB platform_headers "platform/CXWindows*.h")
endif()
list(APPEND sources ${platform_sources})
list(APPEND headers ${platform_headers})
if (SYNERGY_ADD_HEADERS)
list(APPEND sources ${headers})
2012-06-10 16:50:54 +00:00
endif()
include_directories(
2012-06-10 16:50:54 +00:00
../../lib/arch
../../lib/base
../../lib/client
../../lib/common
../../lib/io
2012-06-28 07:29:06 +00:00
../../lib/ipc
2012-06-10 16:50:54 +00:00
../../lib/mt
../../lib/net
../../lib/platform
../../lib/server
2012-06-10 16:50:54 +00:00
../../lib/synergy
../../lib/synwinhk
../../lib/synwinxt
../../../ext/gtest-1.6.0/include
../../../ext/gmock-1.6.0/include
2012-06-10 16:50:54 +00:00
../unittests
)
if (UNIX)
include_directories(
2012-06-10 16:50:54 +00:00
../../..
)
endif()
add_executable(integtests ${sources})
2012-06-10 16:50:54 +00:00
target_link_libraries(integtests
arch base client common io ipc mt net platform server synergy gtest gmock cryptopp ${libs})