barrier/cmake/CMakeLists_test.txt

67 lines
1.8 KiB
Plaintext
Raw Normal View History

# 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/>.
# Include all files that have unit tests
set(unittests
${root_dir}/third_party/gtest/src/gtest_main.cc
${root_dir}/src/unittest/synergy/CClipboardTests.cpp
)
set(integtests
${root_dir}/src/integtest/IntegTestMain.cpp
)
if(WIN32)
list(APPEND integtests
${root_dir}/src/integtest/platform/CMSWindowsClipboardTests.cpp
)
endif()
2011-04-25 01:01:44 +00:00
if(UNIX)
if(APPLE)
list(APPEND integtests
${root_dir}/src/integtest/platform/COSXClipboardTests.cpp
)
else()
list(APPEND integtests
${root_dir}/src/integtest/platform/CXWindowsClipboardTests.cpp
)
endif()
2011-04-24 17:37:15 +00:00
endif()
set(inc
${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
${root_dir}/third_party/gtest
${root_dir}/third_party/gtest/include
)
include_directories(${inc})
add_executable(unittests ${unittests})
target_link_libraries(unittests synergy gtest ${libs})
add_executable(integtests ${integtests})
target_link_libraries(integtests synergy gtest ${libs})