[Kde-bindings] KDE/kdebindings/php/phpqt

Thomas Moenicke tm at php-qt.org
Wed Nov 26 21:58:22 UTC 2008


SVN commit 889469 by moenicke:

* added Makefile target 'doc' which invokes doxygen if installed

CCMAIL: kde-bindings at kde.org



 M  +6 -0      CMakeLists.txt.php-qt  
 A             Doxyfile.unittests  
 M  +4 -2      README  
 A             doc (directory)  
 A             doc/unittests (directory)  


--- trunk/KDE/kdebindings/php/phpqt/CMakeLists.txt.php-qt #889468:889469
@@ -19,6 +19,7 @@
 FIND_PACKAGE(Perl REQUIRED)
 set( QT_MIN_VERSION "4.4.0" )
 FIND_PACKAGE (Qt4 REQUIRED)
+Find_PACKAGE(Doxygen) # optional
 
 add_definitions (${QT_DEFINITIONS}  -DHAVE_CONFIG_H=1)
 include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${QT_INCLUDES} )
@@ -65,3 +66,8 @@
 elseif(PHPUNIT_EXECUTABLE)
   MESSAGE(STATUS "no tests configured (needs phpunit)")
 endif(PHPUNIT_EXECUTABLE)
+
+IF(DOXYGEN_FOUND)
+  SET(DOXYFILE_UNITTESTS Doxyfile.unittests)
+  ADD_CUSTOM_TARGET(doc ${DOXYGEN_EXECUTABLE} ${DOXYFILE_UNITTESTS} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
+ENDIF(DOXYGEN_FOUND)
--- trunk/KDE/kdebindings/php/phpqt/README #889468:889469
@@ -97,14 +97,16 @@
 make test
 
 Alternatively you can run 'phpunit QtBasicTestCase.php' or other tests in the tests folder.
+More tests can be found in tests/misc/
 
 To remove old objectfiles run:
 
 make clean
 
-To test it, simply run one of the test scripts in the php_qt/test/ 
-subdirectory.
+To create documentation go into your build dir and invoke:
 
+make doc
+
 Troubleshooting
 ===================================
 



More information about the Kde-bindings mailing list