Fix CMake
This commit is contained in:
parent
cae0e0a5e6
commit
6f08afb798
@ -27,10 +27,10 @@ link_libraries(${X11_LIBRARIES})
|
|||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT ".gresource.c"
|
OUTPUT ".gresource.c"
|
||||||
COMMAND glib-compile-resources
|
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"
|
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\"")
|
target_compile_definitions(zenity PRIVATE "-DG_LOG_DOMAIN=\"Zenity\"")
|
||||||
|
|
||||||
# Install
|
# Install
|
||||||
|
Reference in New Issue
Block a user