diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 17 |
1 files changed, 8 insertions, 9 deletions
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) |