27 lines
471 B
CMake
27 lines
471 B
CMake
cmake_minimum_required(VERSION 3.10.1)
|
|
|
|
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
|
|
conan_basic_setup()
|
|
|
|
set(EXEC_TEST
|
|
"test.cpp"
|
|
)
|
|
|
|
add_executable(exec_test ${EXEC_TEST})
|
|
|
|
message("CONAN INCLUDE DIRS:")
|
|
message("${CONAN_INCLUDE_DIRS}")
|
|
message("CONAN LIB DIRS:")
|
|
message("${CONAN_LIBS}")
|
|
target_include_directories(exec_test
|
|
PUBLIC
|
|
${CONAN_INCLUDE_DIRS}
|
|
)
|
|
|
|
target_link_libraries(exec_test
|
|
PUBLIC
|
|
gtest
|
|
)
|
|
|
|
add_test(NAME exec_test COMMAND exec_test)
|