2012-04-15 19:57:10 -04:00
|
|
|
# Copyright (C) 2011 Strahinja Markovic <strahinja.markovic@gmail.com>
|
|
|
|
#
|
|
|
|
# This file is part of YouCompleteMe.
|
|
|
|
#
|
|
|
|
# YouCompleteMe is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# YouCompleteMe 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 YouCompleteMe. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2012-08-04 21:59:22 -04:00
|
|
|
project( ycm_core_tests )
|
2012-04-15 19:57:10 -04:00
|
|
|
cmake_minimum_required( VERSION 2.8 )
|
|
|
|
|
|
|
|
# The gtest library triggers these silly warnings, so we turn them off
|
|
|
|
if ( COMPILER_IS_CLANG )
|
2012-07-09 16:58:56 -04:00
|
|
|
set( CMAKE_CXX_FLAGS
|
|
|
|
"${CMAKE_CXX_FLAGS} -Wno-long-long -Wno-variadic-macros" )
|
2012-04-15 19:57:10 -04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
add_subdirectory( gmock )
|
|
|
|
|
|
|
|
include_directories(
|
2012-08-04 21:59:22 -04:00
|
|
|
${ycm_core_SOURCE_DIR}
|
2012-07-05 00:24:16 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
SYSTEM
|
2012-07-05 20:59:32 -04:00
|
|
|
${gtest_ycm_SOURCE_DIR}
|
|
|
|
${gtest_ycm_SOURCE_DIR}/include
|
2012-04-15 19:57:10 -04:00
|
|
|
${gmock_SOURCE_DIR}
|
|
|
|
${gmock_SOURCE_DIR}/include
|
|
|
|
)
|
|
|
|
|
|
|
|
link_directories(
|
|
|
|
${Boost_LIBRARY_DIRS}
|
|
|
|
${PYTHON_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
|
|
|
file( GLOB SOURCES *.h *.cpp )
|
|
|
|
|
|
|
|
add_executable( ${PROJECT_NAME}
|
|
|
|
${SOURCES}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries( ${PROJECT_NAME}
|
2012-08-04 21:59:22 -04:00
|
|
|
ycm_core
|
2012-04-15 19:57:10 -04:00
|
|
|
gmock_main
|
|
|
|
)
|
|
|
|
|