mirror of
https://github.com/pantor/inja.git
synced 2026-10-13 07:47:15 +00:00
fix cmake build for benchmark
This commit is contained in:
1 parent
7dbdd44b0e
commit
0f1f57a8a3
2 files changed
+10
-8
No files matched your search
+8
-7
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user