Cmake install and scripts
Thanks for this nice tool, worked better than I expected ;-) This PR might not be finished or polished, but might be helpful to others. It allows to
- Install the data-folder, generator and indexer programs, as well as providing a new
FindWoboq.cmake - Edited README for the linux installation procedure to do out-of-source builds. They are much inferior.
- Disabled strict-aliasing, as gcc6 will emit many warnings due to type-pruning in llvm headers. Can't change these. Better safe than sorry.
If FindWoboq.cmake is findable in $CMAKE_MODULE_PATH, there is a new function CreateBrowsableDocumentation(TARGET $trgt). It will create targets like woboq-$trgt, woboq and woboq-serve. So adding the following to a CMakeLists:
# of course, provide the correct installation location
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "/opt/woboq.install/share/woboq/cmake")
find_package(Woboq REQUIRED)
CreateBrowsableDocumentation(TARGETS subtarget1 subtarget2 maintarget)
Then, after recreating the build-folder, start a python simple http server:
make -C build woboq-serve
And open the stuff in the browser:
xdg-open http://localhost:8000
Works for me ;-) The indexer seems a bit buggy or wrongly used be me -- css is broken in some locations?
Sidenote: Generated files located inside the build-folder (Qt...) are missing if the build folder is not inside the src-folder. See ProjectManager::projectForFile. This is inconvenient in a CI-environment for example.
Uh, hadn't realized the incremental aspect. It seems to work, but removing cpp/hpp files might cause problems? Yeah, cleaning the ${srcprjct} and ${bldprojct} prior to running sounds like a good idea
FYI https://github.com/woboq/woboq_codebrowser/pull/58 was merged which partly overlaps here
ui. Gut zu wissen. Wir müssten mal rebasen ;-)
On 08/10/2017 12:02 PM, Markus Goetz wrote:
FYI #58 https://github.com/woboq/woboq_codebrowser/pull/58 was merged which partly overlaps here
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/woboq/woboq_codebrowser/pull/53#issuecomment-321508476, or mute the thread https://github.com/notifications/unsubscribe-auth/AAN16kvHtwOlKI0c2H8MyHQ_WkY5rZsQks5sWtVFgaJpZM4L2mxl.
-- M.Sc. Martin Zenzes Space Robotics
Hauptgeschäftsstelle Standort Bremen: DFKI GmbH Robotics Innovation Center Robert-Hooke-Straße 5 28359 Bremen, Germany
Phone: +49 (0) 421 178 45 - 6658 Fax: +49 (0) 421 178 45 - 4150 E-Mail: [email protected]
Weitere Informationen: http://www.dfki.de/robotik
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes Amtsgericht Kaiserslautern, HRB 2313 Sitz der Gesellschaft: Kaiserslautern (HRB 2313) USt-Id.Nr.: DE 148646973 Steuernummer: 19/673/0060/3
too old