try canonical cmake form for catch2 dep
This commit is contained in:
parent
19ca2b6a34
commit
dfbc753fd6
1 changed files with 4 additions and 3 deletions
|
|
@ -22,9 +22,10 @@ target_code_coverage(${SELF_EXECUTABLE_NAME} AUTO ALL)
|
|||
# puts include directory in NIX_CFLAGS_COMPILE, so stuff 'just works'
|
||||
#
|
||||
find_package(Catch2 2 REQUIRED)
|
||||
set(Catch2_INCLUDES "${Catch2_DIR}/../../../include")
|
||||
#get_target_property(Catch2_INCLUDES Catch2 INCLUDE_DIRECTORIES)
|
||||
target_include_directories(${SELF_EXECUTABLE_NAME} PUBLIC ${Catch2_INCLUDES})
|
||||
target_link_libraries(${SELF_EXECUTABLE_NAME} Catch2::Catch2)
|
||||
|
||||
#set(Catch2_INCLUDES "${Catch2_DIR}/../../../include")
|
||||
#target_include_directories(${SELF_EXECUTABLE_NAME} PUBLIC ${Catch2_INCLUDES})
|
||||
|
||||
#xo_internal_dependency(${SELF_EXECUTABLE_NAME} Catch2)
|
||||
#target_link_libraries(${SELF_EXECUTABLE_NAME} PUBLIC Catch2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue