use CMAKE_INCLUDE_CURRENT_DIR
This commit is contained in:
parent
87912c46db
commit
fe44723d4e
@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 2.8)
|
||||
project(mstch)
|
||||
option (WITH_UNIT_TESTS "enable building unit test executable" OFF)
|
||||
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
|
||||
if(NOT MSVC)
|
||||
|
@ -2,7 +2,6 @@ find_package(Boost 1.54 REQUIRED)
|
||||
|
||||
include_directories(
|
||||
${CMAKE_SOURCE_DIR}/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${Boost_INCLUDE_DIR})
|
||||
|
||||
set(SRC
|
||||
|
@ -1,9 +1,7 @@
|
||||
find_package(Boost 1.54 COMPONENTS program_options REQUIRED)
|
||||
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${CMAKE_SOURCE_DIR}/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${Boost_INCLUDE_DIR})
|
||||
|
||||
add_executable(benchmark benchmark_main.cpp)
|
||||
|
Loading…
Reference in New Issue
Block a user