CihanTopal / ED_Lib

Implementations of edge (ED, EDColor, EDPF), line (EDLines), circle and low eccentric ellipse (EDCircles) detection algorithms.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CMake Error: target name "test" is reserved

4c3y opened this issue · comments

commented

I would like to include ED_Lib as a git submodule in my project but I get the following error:

CMake Error at 3rdparty/ED_Lib/CMakeLists.txt:24 (add_executable):
  The target name "test" is reserved when CTest testing is enabled.

This error occurs as a result of the following code in CMakeLists.txt:

add_executable(test test.cpp)
target_link_libraries(test ${OpenCV_LIBS} EDLib)

CMake includes some functionality for automated testing so the name "test" is reserved. Would it be possible to rename the target "test" into something else?