CMake Style Changes

This commit is contained in:
TheBrokenRail 2022-08-04 15:51:52 -04:00
parent d673e9aab8
commit 7dc886e7d2

View File

@ -27,11 +27,10 @@ pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET "glib-2.0>=2.43.4")
link_libraries(PkgConfig::GTK3 PkgConfig::GLIB) link_libraries(PkgConfig::GTK3 PkgConfig::GLIB)
# Build # Build
add_custom_command( add_custom_command(OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/.gresource.c"
OUTPUT ".gresource.c"
COMMAND glib-compile-resources COMMAND glib-compile-resources
ARGS "--target" "${CMAKE_CURRENT_BINARY_DIR}/.gresource.c" "--generate-source" "--sourcedir" "${CMAKE_CURRENT_SOURCE_DIR}/src" "${CMAKE_CURRENT_SOURCE_DIR}/src/.gresource.xml" ARGS "--target" "${CMAKE_CURRENT_BINARY_DIR}/.gresource.c" "--generate-source" "--sourcedir" "${CMAKE_CURRENT_SOURCE_DIR}/src" "${CMAKE_CURRENT_SOURCE_DIR}/src/.gresource.xml"
DEPENDS "src/.gresource.xml" "src/zenity.ui" DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/src/.gresource.xml" "${CMAKE_CURRENT_SOURCE_DIR}/src/zenity.ui"
) )
add_executable(zenity src/entry.c src/tree.c src/option.c src/text.c src/util.c src/main.c "${CMAKE_CURRENT_BINARY_DIR}/.gresource.c") add_executable(zenity src/entry.c src/tree.c src/option.c src/text.c src/util.c src/main.c "${CMAKE_CURRENT_BINARY_DIR}/.gresource.c")
target_compile_definitions(zenity PRIVATE "-DG_LOG_DOMAIN=\"Zenity\"") target_compile_definitions(zenity PRIVATE "-DG_LOG_DOMAIN=\"Zenity\"")