Add a querying tool for use in e.g. IRC bots

Now the tools don't get built on `make all' but instead have their
own target called `tools'.  It might be reasonable to move them into
their own directory sometime, instead of cluttering `src'.
This commit is contained in:
2013-10-02 02:17:38 +02:00
parent 1955343857
commit adce15243a
2 changed files with 183 additions and 1 deletions

View File

@@ -110,10 +110,16 @@ add_executable (${CMAKE_PROJECT_NAME}
target_link_libraries (${CMAKE_PROJECT_NAME} ${project_common_libraries})
# Tools
add_executable (add-pronunciation
add_executable (query-tool EXCLUDE_FROM_ALL
src/query-tool.c ${project_common_sources})
target_link_libraries (query-tool ${project_common_libraries})
add_executable (add-pronunciation EXCLUDE_FROM_ALL
src/add-pronunciation.c ${project_common_sources})
target_link_libraries (add-pronunciation ${project_common_libraries})
add_custom_target (tools DEPENDS add-pronunciation query-tool)
# The files to be installed
include (GNUInstallDirs)
install (TARGETS ${CMAKE_PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})