Make it compatible with conan.io (but optional).

This commit is contained in:
Javier Jerónimo Suárez 2016-11-22 17:50:06 +01:00
parent a71c0a0edb
commit c03d3b2d5a

View File

@ -1,8 +1,10 @@
cmake_minimum_required(VERSION 2.8)
project (crow_all)
if(EXISTS "${CMAKE_BINARY_DIR}/conanbuildinfo.cmake")
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
endif()
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
find_package(Tcmalloc)
@ -28,13 +30,13 @@ endif()
include_directories( ${Boost_INCLUDE_DIR} )
set(PROJECT_INCLUDE_DIR
set(PROJECT_INCLUDE_DIR
${PROJECT_SOURCE_DIR}/include
)
include_directories("${PROJECT_INCLUDE_DIR}")
include_directories("${PROJECT_SOURCE_DIR}")
#add_subdirectory(src)
add_subdirectory(examples)
if (MSVC)