Skip to content

Commit

Permalink
fix test include directory, resolves #276
Browse files Browse the repository at this point in the history
  • Loading branch information
pantor committed Oct 5, 2024
1 parent 629efa4 commit ee8999c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ if(BUILD_TESTING AND INJA_BUILD_TESTS)

add_executable(inja_test test/test.cpp)
target_link_libraries(inja_test PRIVATE inja)
target_include_directories(inja_test PRIVATE include third_party/include)
add_test(inja_test ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/inja_test)

if(MSVC)
Expand All @@ -95,10 +96,11 @@ if(BUILD_TESTING AND INJA_BUILD_TESTS)

add_library(single_inja INTERFACE)
target_compile_features(single_inja INTERFACE cxx_std_17)
target_include_directories(single_inja INTERFACE single_include include third_party/include)
target_include_directories(single_inja INTERFACE single_include)

add_executable(single_inja_test test/test.cpp)
target_link_libraries(single_inja_test PRIVATE single_inja)
target_include_directories(single_inja_test PRIVATE include third_party/include)

add_test(single_inja_test ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/single_inja_test)
endif()
Expand Down

0 comments on commit ee8999c

Please sign in to comment.