From aa198484997003294fe053d72e3f37471dca162f Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Mon, 7 Sep 2020 19:08:04 +0200 Subject: Add an experimental GTK+ UI It has a potential to stay simpler than the TUI, while having a wider feature set. Not building this toy by default, it needs some time investment. --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index e9b75b0..8771632 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -179,6 +179,15 @@ add_executable (${PROJECT_NAME} ${project_sources} ${project_headers} ${project_common_sources}) target_link_libraries (${PROJECT_NAME} ${project_common_libraries}) +# Experimental GTK+ frontend, we link it with ncurses but we don't care +pkg_check_modules (gtk gtk+-3.0) +if (gtk_FOUND) + add_executable (sdgtk EXCLUDE_FROM_ALL + src/sdgtk.c ${project_common_sources}) + target_include_directories (sdgtk PUBLIC ${gtk_INCLUDE_DIRS}) + target_link_libraries (sdgtk ${gtk_LIBRARIES} ${project_common_libraries}) +endif (gtk_FOUND) + # Tools set (tools add-pronunciation query-tool transform) foreach (tool ${tools}) -- cgit v1.2.3-70-g09d2