From f597be870eec6d04de6bed0effa7dd23bcb72bf8 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 11 Jul 2024 13:17:03 +0200 Subject: initial commit --- app/CMakeLists.txt | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 app/CMakeLists.txt (limited to 'app/CMakeLists.txt') diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt new file mode 100644 index 0000000..88dea68 --- /dev/null +++ b/app/CMakeLists.txt @@ -0,0 +1,54 @@ +# Library + +add_library("app" + "src/application.cpp" +) + +add_library("turns::app" ALIAS "app") + +target_compile_options("app" PUBLIC + "$<$:-Wall>" + "$<$:-Wextra>" + "$<$:-Werror>" + "$<$:-pedantic-errors>" +) + +target_include_directories("app" PUBLIC + "include" +) + +target_link_libraries("app" PUBLIC + "PkgConfig::adwaita" + "PkgConfig::gtkmm" + + "$<$:-Wl,--whole-archive>" + "turns::res" + "$<$:-Wl,--no-whole-archive>" +) + +# Application + +add_executable("exe" + "src/main.cpp" +) + +target_link_libraries("exe" PRIVATE + "turns::app" +) + +set_target_properties("exe" PROPERTIES + OUTPUT_NAME "turns" +) + +install(TARGETS "exe" + RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" +) + +configure_file("desktop.in" + "turns.desktop" +) + +install(FILES + "${CMAKE_CURRENT_BINARY_DIR}/turns.desktop" + DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications" +) \ No newline at end of file -- cgit v1.2.3