Fix CMake

This commit is contained in:
TheBrokenRail 2022-03-10 23:25:02 -05:00
parent cae0e0a5e6
commit 6f08afb798

View File

@ -27,10 +27,10 @@ link_libraries(${X11_LIBRARIES})
add_custom_command(
OUTPUT ".gresource.c"
COMMAND glib-compile-resources
ARGS "--target" "${CMAKE_BINARY_DIR}/.gresource.c" "--generate-source" "--sourcedir" "${CMAKE_SOURCE_DIR}/src" "${CMAKE_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"
)
add_executable(zenity src/entry.c src/tree.c src/option.c src/util.c src/main.c "${CMAKE_BINARY_DIR}/.gresource.c")
add_executable(zenity src/entry.c src/tree.c src/option.c src/util.c src/main.c "${CMAKE_CURRENT_BINARY_DIR}/.gresource.c")
target_compile_definitions(zenity PRIVATE "-DG_LOG_DOMAIN=\"Zenity\"")
# Install