diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..bea575523 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +TAGS diff --git a/CMakeLists.txt b/CMakeLists.txt index 7500a9e23..1ec368442 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -505,6 +505,13 @@ if (APPLE) endif (APPLE) +# +# find some useful tools +# +find_program(CTAGS ctags) +find_program(ETAGS etags) + + # # C & C++ setup # @@ -727,6 +734,17 @@ elseif (CMAKE_HOST_WIN32) add_definitions (-DWIN32) endif () +# +# source navigation +# +set (sources + ${CMAKE_SOURCE_DIR}/* + ${CMAKE_SOURCE_DIR}/logbook/* + ${CMAKE_SOURCE_DIR}/lib/* + ) +add_custom_target (ctags COMMAND ${CTAGS} -o ${CMAKE_SOURCE_DIR}/tags -R ${sources}) +add_custom_target (etags COMMAND ${ETAGS} -o ${CMAKE_SOURCE_DIR}/TAGS -R ${sources}) + # embedded resources function (add_resources resources path)