From 0f1f57a8a3ad83b760417093840589c7ad2b7b0b Mon Sep 17 00:00:00 2001 From: pantor Date: Fri, 23 Nov 2018 17:57:05 +0100 Subject: [PATCH] fix cmake build for benchmark --- .gitignore | 3 ++- test/CMakeLists.txt | 15 ++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 03cb7bf..7068ef9 100644 --- a/.gitignore +++ b/.gitignore @@ -33,7 +33,8 @@ # Build Folders build +buildc dist # Coveralls repo token -.coveralls.yml \ No newline at end of file +.coveralls.yml diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index d25bbc0..2608f76 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -21,7 +21,7 @@ add_executable(inja_test src/unit.cpp ) -add_executable(BENCHMARK +add_executable(inja_benchmark src/benchmark.cpp ) @@ -43,14 +43,15 @@ if(HUNTER_ENABLED) # Use Hunter to manage dependencies else() # Manage dependencies manually # Prepare "Catch" library for other executables add_library(Catch INTERFACE) - target_include_directories(Catch INTERFACE "thirdparty") + target_include_directories(Catch INTERFACE "src/catch") - # Prepare "JSON" library for other executables - add_library(JSON INTERFACE) - target_include_directories(JSON INTERFACE "thirdparty") + # Prepare "hayai" library for other executables + add_library(hayai INTERFACE) + target_include_directories(hayai INTERFACE "src/hayai") - # Add dependencies to target - target_link_libraries(inja_test Catch JSON inja) + # Add dependencies to targets + target_link_libraries(inja_test Catch inja) + target_link_libraries(inja_benchmark hayai inja) endif()