CMake Style Changes
This commit is contained in:
parent
d673e9aab8
commit
7dc886e7d2
@ -27,11 +27,10 @@ pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET "glib-2.0>=2.43.4")
|
||||
link_libraries(PkgConfig::GTK3 PkgConfig::GLIB)
|
||||
|
||||
# Build
|
||||
add_custom_command(
|
||||
OUTPUT ".gresource.c"
|
||||
add_custom_command(OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/.gresource.c"
|
||||
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"
|
||||
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")
|
||||
target_compile_definitions(zenity PRIVATE "-DG_LOG_DOMAIN=\"Zenity\"")
|
||||
|
Reference in New Issue
Block a user