Commit 34f78b7e authored by Alexis Girault's avatar Alexis Girault

COMP: remove testing source files from targets

By adding testing source files in the same directory
than the target source files, those first ones were
included in the target executables by mistake.
parent 866e208d
......@@ -32,8 +32,13 @@ function(imstk_add_library target)
#-----------------------------------------------------------------------------
# Get files and directories
#-----------------------------------------------------------------------------
file(GLOB_RECURSE target_H_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
file(GLOB_RECURSE target_CPP_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp")
file(GLOB_RECURSE target_H_FILES "${CMAKE_CURRENT_SOURCE_DIR}/imstk*.h")
file(GLOB_RECURSE target_CPP_FILES "${CMAKE_CURRENT_SOURCE_DIR}/imstk*.cpp")
file(GLOB_RECURSE testing_FILES "${CMAKE_CURRENT_SOURCE_DIR}/Testing/*")
if(testing_CPP_FILES)
list(REMOVE_ITEM target_H_FILES ${testing_FILES})
list(REMOVE_ITEM target_CPP_FILES ${testing_FILES})
endif()
imstk_subdir_list(target_SUBDIR_LIST ${CMAKE_CURRENT_SOURCE_DIR})
#-----------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment