mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-08-10 14:09:48 +00:00
Include CTest instead of calling enable_testing() manually
This commit is contained in:
parent
609f5db623
commit
a9bb28d0a8
2 changed files with 4 additions and 7 deletions
|
@ -6,10 +6,9 @@ set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Wall -O3")
|
|||
|
||||
option(PBL_WITH_TESTS "Enable building test programs" ON)
|
||||
|
||||
#add_library(${PROJECT_NAME} INTERFACE)
|
||||
#target_include_directories(${PROJECT_NAME}
|
||||
# INTERFACE .
|
||||
#)
|
||||
if (PBL_WITH_TESTS)
|
||||
include(CTest)
|
||||
endif()
|
||||
|
||||
add_library(pbl STATIC
|
||||
pbl/src/src/pblStringBuilder.c
|
||||
|
@ -33,8 +32,6 @@ target_compile_definitions(pbl
|
|||
)
|
||||
|
||||
if (BUILD_TESTING AND PBL_WITH_TESTS)
|
||||
enable_testing()
|
||||
|
||||
set(pbl_tests
|
||||
httst
|
||||
#kftst
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue