Hi, I gathered it'd be a sensible idea to have some unittest-like tests to catch regressions. There already were a few (src/base/test), but they're not integrated into the main build progress (yet|anymore).
It looks like CMake has some nice infrastructure for testing, http://cmake.org/Wiki/CMake_Testing_With_CTest - might be nice to try and leverage that. In any case as some tests might want to test stuff that's not in RosegardenCommon, I figured it'd be a good idea to make a similar RosegardenExtended library. To that end, I removed gui/application/main.cpp from guimain_SRCS, and made the following changes to CMakeLists: Index: CMakeLists.txt =================================================================== --- CMakeLists.txt (revision 8039) +++ CMakeLists.txt (working copy) @@ -94,13 +94,25 @@ KDE3_AUTOMOC(${commands_SRCS}) KDE3_AUTOMOC(${document_SRCS}) -KDE3_ADD_EXECUTABLE(rosegarden +ADD_LIBRARY(RosegardenExtended ${commands_SRCS} ${document_SRCS} ${gui_SRCS} ) IF(USE_PCH) + ADD_DEPENDENCIES(RosegardenExtended precompiled_headers) +ENDIF(USE_PCH) + + +KDE3_ADD_EXECUTABLE(rosegarden + #${commands_SRCS} + #${document_SRCS} + #${gui_SRCS} + gui/application/main.cpp +) + +IF(USE_PCH) ADD_DEPENDENCIES(rosegarden precompiled_headers) ENDIF(USE_PCH) @@ -116,6 +128,7 @@ kdeui kdeprint RosegardenCommon + RosegardenExtended ) # Install targets Unfortunately, this doesn't work: when compiling like this, I get the linker errors at http://bzzt.net/~arnouten/builderrors.txt . Perhaps someone with better cmake/ld-fu could take a look? ;) Arnout ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Rosegarden-devel mailing list [email protected] - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel
