From 8d19acd91af9592d862ef2a7aa8e95eea4160152 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Thu, 3 Sep 2020 23:17:17 +0200 Subject: Add a tool to transform dictionaries --- CMakeLists.txt | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 6edd410..3bb97aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -180,15 +180,14 @@ add_executable (${PROJECT_NAME} target_link_libraries (${PROJECT_NAME} ${project_common_libraries}) # Tools -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) +set (tools add-pronunciation query-tool transform) +foreach (tool ${tools}) + add_executable (${tool} EXCLUDE_FROM_ALL + src/${tool}.c ${project_common_sources}) + target_link_libraries (${tool} ${project_common_libraries}) +endforeach (tool) + +add_custom_target (tools DEPENDS ${tools}) # The files to be installed include (GNUInstallDirs) -- cgit v1.2.3-70-g09d2