diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2013-10-02 02:17:38 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2013-10-02 02:17:38 +0200 |
commit | adce15243ac55b6a1d8a832f21e4eaf6c9e54cf2 (patch) | |
tree | fa798df9ef470a2fdc7bdfb27707a7a2d5b80f96 /CMakeLists.txt | |
parent | 195534385764902751cd45c3748cef885aeaa21c (diff) | |
download | tdv-adce15243ac55b6a1d8a832f21e4eaf6c9e54cf2.tar.gz tdv-adce15243ac55b6a1d8a832f21e4eaf6c9e54cf2.tar.xz tdv-adce15243ac55b6a1d8a832f21e4eaf6c9e54cf2.zip |
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'.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e2c1373..b9fed6c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}) |