use CMAKE_INCLUDE_CURRENT_DIR

This commit is contained in:
Daniel Sipka 2015-09-24 11:51:00 +02:00
parent 87912c46db
commit fe44723d4e
3 changed files with 1 additions and 3 deletions

View File

@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 2.8)
project(mstch) project(mstch)
option (WITH_UNIT_TESTS "enable building unit test executable" OFF) option (WITH_UNIT_TESTS "enable building unit test executable" OFF)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_BUILD_TYPE Release) set(CMAKE_BUILD_TYPE Release)
if(NOT MSVC) if(NOT MSVC)

View File

@ -2,7 +2,6 @@ find_package(Boost 1.54 REQUIRED)
include_directories( include_directories(
${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}
${Boost_INCLUDE_DIR}) ${Boost_INCLUDE_DIR})
set(SRC set(SRC

View File

@ -1,9 +1,7 @@
find_package(Boost 1.54 COMPONENTS program_options REQUIRED) find_package(Boost 1.54 COMPONENTS program_options REQUIRED)
include_directories( include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}
${Boost_INCLUDE_DIR}) ${Boost_INCLUDE_DIR})
add_executable(benchmark benchmark_main.cpp) add_executable(benchmark benchmark_main.cpp)