2020# TEST_NAME -> test name (name of the class of the test in Test .cpp)
2121# TEST_LIST -> test cases implemented in the Test .cpp
2222# TEST_EXTRA_LIBRARIES -> libraries that must be linked to compile the test
23- # TEST_NEEDED_SOURCES -> source files required to be copies for the test execution
23+ # TEST_NEEDED_SOURCES -> source files required to be copied for the test execution
24+ # ARGV6 -> TEST_EXTRA_HEADERS -> extra headers needed for the test (sixth optional argument)
2425#
2526# NOTE:
2627# pass the arguments with "" in order to send them as a list. Otherwise they will not be received correctly
@@ -106,6 +107,9 @@ endfunction(add_test_executable)
106107# TEST_SOURCES -> sources for the test
107108# TEST_LIST -> test cases implemented in the Test .cpp
108109# TEST_EXTRA_LIBRARIES -> libraries that must be linked to compile the test
110+ # ARGV4 -> TEST_NEEDED_SOURCES -> source files required to be copied for the test execution (fourth optional argument)
111+ # ARGV5 -> TEST_EXTRA_HEADERS -> extra headers needed for the test (fifth optional argument)
112+ # ARGV4 required if this argument is set
109113function (add_unittest_executable TEST_NAME TEST_SOURCES TEST_LIST TEST_EXTRA_LIBRARIES )
110114
111115 add_test_executable (
@@ -115,6 +119,7 @@ function(add_unittest_executable TEST_NAME TEST_SOURCES TEST_LIST TEST_EXTRA_LIB
115119 "${TEST_LIST} "
116120 "${TEST_EXTRA_LIBRARIES} "
117121 "${ARGV4} " # TEST_NEEDED_SOURCES (EQUAL "" if not provided)
122+ "${ARGV5} " # TEST_EXTRA_HEADERS (EQUAL "" if not provided)
118123 )
119124
120125endfunction (add_unittest_executable )
@@ -125,7 +130,8 @@ endfunction(add_unittest_executable)
125130# TEST_NAME -> test name (it will add "_Test" after name)
126131# TEST_SOURCES -> sources for the test
127132# TEST_LIST -> test cases implemented in the Test .cpp
128- # ARGV4 -> extra headers needed for the test (fifth optional argument)
133+ # TEST_NEEDED_SOURCES -> source files required to be copies for the test execution
134+ # ARGV4 -> TEST_EXTRA_HEADERS -> extra headers needed for the test (fifth optional argument)
129135function (add_blackbox_executable TEST_NAME TEST_SOURCES TEST_LIST TEST_NEEDED_SOURCES )
130136
131137 # Add all cpp files to sources
0 commit comments