Commit 0201a214 authored by Andreas Sturmlechner's avatar Andreas Sturmlechner

Use BUILD_TESTING consistently

REVIEW: 127527
parent 7473e3fb
......@@ -21,12 +21,14 @@ if(NOT WIN32)
target_link_libraries(cantor_maximabackend KF5::Pty)
endif(NOT WIN32)
add_executable( testmaxima testmaxima.cpp)
target_link_libraries( testmaxima
cantorlibs
cantortest
${QTTEST_LIBRARY}
)
if(BUILD_TESTING)
add_executable( testmaxima testmaxima.cpp)
target_link_libraries( testmaxima
cantorlibs
cantortest
${QTTEST_LIBRARY}
)
endif()
install( FILES cantor_maxima.knsrc DESTINATION ${KDE_INSTALL_CONFDIR} )
install( FILES keywords.xml cantor-initmaxima.lisp DESTINATION ${KDE_INSTALL_DATADIR}/cantor/maximabackend)
......@@ -20,10 +20,12 @@ target_link_libraries(cantor_python2backend
cantor_pythonbackend
)
add_executable(testpython2 testpython2.cpp)
target_link_libraries(testpython2 ${QT_QTTEST_LIBRARY} cantorlibs cantortest)
if(BUILD_TESTING)
add_executable(testpython2 testpython2.cpp)
target_link_libraries(testpython2 ${QT_QTTEST_LIBRARY} cantorlibs cantortest)
add_test(NAME testpython2 COMMAND testpython2)
add_test(NAME testpython2 COMMAND testpython2)
endif()
install(FILES cantor_python2.knsrc DESTINATION ${KDE_INSTALL_CONFDIR})
install(FILES python2backend.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
......@@ -15,4 +15,7 @@ install(FILES cantor_python3.knsrc DESTINATION ${KDE_INSTALL_CONFDIR})
install(FILES python3backend.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
add_subdirectory(python3server)
add_subdirectory(tests)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()
......@@ -17,12 +17,14 @@ add_backend(sagebackend ${SageBackend_SRCS})
target_link_libraries( cantor_sagebackend KF5::Pty)
add_executable( testsage testsage.cpp)
target_link_libraries( testsage
${QT_QTTEST_LIBRARY}
cantorlibs
cantortest
)
if(BUILD_TESTING)
add_executable( testsage testsage.cpp)
target_link_libraries( testsage
${QT_QTTEST_LIBRARY}
cantorlibs
cantortest
)
endif()
install( FILES cantor_sage.knsrc DESTINATION ${KDE_INSTALL_CONFDIR} )
install( FILES keywords.xml DESTINATION ${KDE_INSTALL_DATADIR}/cantor/sagebackend)
......@@ -45,7 +45,7 @@ Set( cantor_LIB_HDRS
textresult.h
#helper classes
defaulthighlighter.h
defaultvariablemodel.h
defaultvariablemodel.h
worksheetaccess.h
)
......@@ -89,4 +89,6 @@ install( FILES ${cantor_LIB_HDRS}
COMPONENT Devel
)
add_subdirectory(test)
if(BUILD_TESTING)
add_subdirectory(test)
endif()
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