Finishing touches, making sure even with conan all needed 3ps are installed and usable.
This brings the source to be able to run tests in conan mode.meow-7.2.2
parent
ca839307f9
commit
d6b34d41af
|
|
@ -17,8 +17,11 @@ set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" "${CMAKE_CURRENT_BINARY_DIR}"
|
|||
|
||||
include(conanbuildinfo OPTIONAL RESULT_VARIABLE USE_CONAN )
|
||||
if( USE_CONAN )
|
||||
conan_basic_setup(TARGETS)
|
||||
set( USE_CONAN ON )
|
||||
conan_basic_setup(TARGETS NO_OUTPUT_DIRS)
|
||||
add_compile_definitions(LL_USESYSTEMLIBS USE_CONAN)
|
||||
else()
|
||||
set( USE_CONAN OFF )
|
||||
endif()
|
||||
|
||||
set(CXX_STANDARD 14)
|
||||
|
|
|
|||
|
|
@ -4,16 +4,18 @@ include(Linking)
|
|||
|
||||
include_guard()
|
||||
|
||||
add_library( ll::googlemock INTERFACE IMPORTED )
|
||||
if(USE_CONAN)
|
||||
return()
|
||||
target_link_libraries( ll::googlemock INTERFACE CONAN_PKG::gtest )
|
||||
|
||||
#Not very nice, but for the moment we need this for tut.hpp
|
||||
target_include_directories( ll::googlemock SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include )
|
||||
return()
|
||||
endif()
|
||||
|
||||
add_library( ll::googlemock INTERFACE IMPORTED )
|
||||
use_prebuilt_binary(googlemock)
|
||||
|
||||
target_include_directories( ll::googlemock SYSTEM INTERFACE
|
||||
${LIBS_PREBUILT_DIR}/include
|
||||
)
|
||||
target_include_directories( ll::googlemock SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include )
|
||||
|
||||
if (LINUX)
|
||||
# VWR-24366: gmock is underlinked, it needs gtest.
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
include(Prebuilt)
|
||||
|
||||
include_guard()
|
||||
use_prebuilt_binary(dictionaries)
|
||||
|
||||
add_library( ll::hunspell INTERFACE IMPORTED )
|
||||
use_conan_binary(hunspell)
|
||||
use_prebuilt_binary(libhunspell)
|
||||
|
|
@ -13,4 +15,3 @@ elseif(LINUX)
|
|||
target_link_libraries( ll::hunspell INTERFACE hunspell-1.3)
|
||||
endif()
|
||||
target_include_directories( ll::hunspell SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include/hunspell)
|
||||
use_prebuilt_binary(dictionaries)
|
||||
|
|
|
|||
Loading…
Reference in New Issue