Fix CMake

This commit is contained in:
TheBrokenRail 2022-08-05 20:45:44 -04:00
parent 7dc886e7d2
commit 27cd9e88a7

View File

@ -27,7 +27,7 @@ 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(OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/.gresource.c" add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/.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 "${CMAKE_CURRENT_SOURCE_DIR}/src/.gresource.xml" "${CMAKE_CURRENT_SOURCE_DIR}/src/zenity.ui" DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/src/.gresource.xml" "${CMAKE_CURRENT_SOURCE_DIR}/src/zenity.ui"