refactor: set test names directly and call only configure_options in main cmakelists.txt

This commit is contained in:
sithlord48 2024-12-01 19:50:46 -05:00 committed by Chris Rizzitello
parent 1685c6e946
commit 81631cac32
5 changed files with 7 additions and 16 deletions

View file

@ -108,7 +108,7 @@ include(cmake/Packaging.cmake)
include(GNUInstallDirs)
configure_definitions()
configure_options()
configure_libs()
add_subdirectory(doc)

View file

@ -14,15 +14,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
macro(configure_definitions)
configure_options()
set(INTEG_TESTS_BIN integtests)
set(UNIT_TESTS_BIN unittests)
endmacro()
macro(configure_options)
set(DEFAULT_BUILD_GUI ON)

View file

@ -387,9 +387,9 @@ macro(configure_coverage)
setup_target_for_coverage_gcovr_xml(
NAME
coverage-${INTEG_TESTS_BIN}
coverage-integtests
EXECUTABLE
${INTEG_TESTS_BIN}
integtests
BASE_DIRECTORY
${test_src}
EXCLUDE
@ -397,9 +397,9 @@ macro(configure_coverage)
setup_target_for_coverage_gcovr_xml(
NAME
coverage-${UNIT_TESTS_BIN}
coverage-unittests
EXECUTABLE
${UNIT_TESTS_BIN}
unittests
BASE_DIRECTORY
${test_src}
EXCLUDE

View file

@ -15,6 +15,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
config_test()
set(target ${INTEG_TESTS_BIN})
set(target integtests)
add_executable(${target} ${sources} ${headers})
target_link_libraries(${target} ${test_libs})

View file

@ -15,6 +15,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
config_test()
set(target ${UNIT_TESTS_BIN})
set(target unittests)
add_executable(${target} ${sources} ${headers})
target_link_libraries(${target} ${test_libs})