refactor: set test names directly and call only configure_options in main cmakelists.txt
This commit is contained in:
parent
1685c6e946
commit
81631cac32
5 changed files with 7 additions and 16 deletions
|
|
@ -108,7 +108,7 @@ include(cmake/Packaging.cmake)
|
||||||
|
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
configure_definitions()
|
configure_options()
|
||||||
configure_libs()
|
configure_libs()
|
||||||
|
|
||||||
add_subdirectory(doc)
|
add_subdirectory(doc)
|
||||||
|
|
|
||||||
|
|
@ -14,15 +14,6 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# 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)
|
macro(configure_options)
|
||||||
|
|
||||||
set(DEFAULT_BUILD_GUI ON)
|
set(DEFAULT_BUILD_GUI ON)
|
||||||
|
|
|
||||||
|
|
@ -387,9 +387,9 @@ macro(configure_coverage)
|
||||||
|
|
||||||
setup_target_for_coverage_gcovr_xml(
|
setup_target_for_coverage_gcovr_xml(
|
||||||
NAME
|
NAME
|
||||||
coverage-${INTEG_TESTS_BIN}
|
coverage-integtests
|
||||||
EXECUTABLE
|
EXECUTABLE
|
||||||
${INTEG_TESTS_BIN}
|
integtests
|
||||||
BASE_DIRECTORY
|
BASE_DIRECTORY
|
||||||
${test_src}
|
${test_src}
|
||||||
EXCLUDE
|
EXCLUDE
|
||||||
|
|
@ -397,9 +397,9 @@ macro(configure_coverage)
|
||||||
|
|
||||||
setup_target_for_coverage_gcovr_xml(
|
setup_target_for_coverage_gcovr_xml(
|
||||||
NAME
|
NAME
|
||||||
coverage-${UNIT_TESTS_BIN}
|
coverage-unittests
|
||||||
EXECUTABLE
|
EXECUTABLE
|
||||||
${UNIT_TESTS_BIN}
|
unittests
|
||||||
BASE_DIRECTORY
|
BASE_DIRECTORY
|
||||||
${test_src}
|
${test_src}
|
||||||
EXCLUDE
|
EXCLUDE
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,6 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
config_test()
|
config_test()
|
||||||
set(target ${INTEG_TESTS_BIN})
|
set(target integtests)
|
||||||
add_executable(${target} ${sources} ${headers})
|
add_executable(${target} ${sources} ${headers})
|
||||||
target_link_libraries(${target} ${test_libs})
|
target_link_libraries(${target} ${test_libs})
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,6 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
config_test()
|
config_test()
|
||||||
set(target ${UNIT_TESTS_BIN})
|
set(target unittests)
|
||||||
add_executable(${target} ${sources} ${headers})
|
add_executable(${target} ${sources} ${headers})
|
||||||
target_link_libraries(${target} ${test_libs})
|
target_link_libraries(${target} ${test_libs})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue