~ubuntu-branches/ubuntu/vivid/vim-youcompleteme/vivid

« back to all changes in this revision

Viewing changes to cpp/ycm/tests/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Onur Aslan, Onur Aslan, Sebastian Ramacher
  • Date: 2014-10-13 21:19:31 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20141013211931-utgsuvs0jri3kd4m
Tags: 0+20140207+git18be5c2-2
[ Onur Aslan ]
* Enable tests for ycm_core
* Add google-mock and libgtest-dev to Build-Depends
* More detailed description for 00-build-system.patch
* Override dh_auto_test to run ycm_core_tests
* Use canonical URI in Vcs-Git
* Add minimum version requirement to python-requests dependency
  (Closes: #745768)
* Bump standards to 3.9.6

[ Sebastian Ramacher ]
* debian/patches/03-tempdir.patch: Update patch to fix issues with
  :YcmRestartServer if the temporary directory got deleted to early.
  (Closes: #745496)

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
project( ycm_core_tests )
19
19
cmake_minimum_required( VERSION 2.8 )
20
 
find_package( Boost 1.53 COMPONENTS system python filesystem regex REQUIRED )
21
20
 
22
21
# The gtest library triggers these warnings, so we turn them off; it's not up to
23
22
# us to fix gtest warnings, it's up to upstream.
26
25
    "${CMAKE_CXX_FLAGS} -Wno-long-long -Wno-variadic-macros -Wno-missing-field-initializers -Wno-unused-private-field" )
27
26
endif()
28
27
 
29
 
add_subdirectory( gmock )
 
28
add_subdirectory( /usr/src/gmock gmock )
30
29
 
31
30
include_directories(
32
31
  ${ycm_support_libs_SOURCE_DIR}
38
37
  ${gtest_SOURCE_DIR}/include
39
38
  ${gmock_SOURCE_DIR}
40
39
  ${gmock_SOURCE_DIR}/include
41
 
  ${Boost_INCLUDE_DIR}
42
40
  )
43
41
 
44
42
link_directories(
 
43
  ${Boost_LIBRARY_DIRS}
45
44
  ${PYTHON_LIBRARIES}
46
45
  )
47
46
 
68
67
              )
69
68
 
70
69
target_link_libraries( ${PROJECT_NAME}
71
 
                       ${Boost_LIBRARIES}
72
70
                       ${SERVER_LIB}
73
71
                       ${CLIENT_LIB}
 
72
                       ${Boost_LIBRARIES}
 
73
                       ${PYTHON_LIBRARIES}
74
74
                       gmock )
75
75
 
76
76