cmake: convert all cmake commands to lowercase
This commit is contained in:
parent
76a3868ce8
commit
2429266e3e
|
@ -8,7 +8,7 @@ add_definitions('-DFALLBACK_CONFIG_DIR=\"${FALLBACK_CONFIG_DIR}\"')
|
||||||
|
|
||||||
set(CMAKE_C_FLAGS "-g")
|
set(CMAKE_C_FLAGS "-g")
|
||||||
set(CMAKE_C_STANDARD 99)
|
set(CMAKE_C_STANDARD 99)
|
||||||
SET(CMAKE_C_EXTENSIONS OFF)
|
set(CMAKE_C_EXTENSIONS OFF)
|
||||||
set(CMAKE_CURRENT_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/bin")
|
set(CMAKE_CURRENT_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/bin")
|
||||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
|
||||||
add_definitions("-Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE")
|
add_definitions("-Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE")
|
||||||
|
@ -50,8 +50,8 @@ find_package(PCRE REQUIRED)
|
||||||
find_package(Wayland REQUIRED)
|
find_package(Wayland REQUIRED)
|
||||||
find_package(JsonC REQUIRED)
|
find_package(JsonC REQUIRED)
|
||||||
|
|
||||||
FILE(GLOB sources ${PROJECT_SOURCE_DIR}/sway/*.c)
|
file(GLOB sources ${PROJECT_SOURCE_DIR}/sway/*.c)
|
||||||
FILE(GLOB common ${PROJECT_SOURCE_DIR}/common/*.c)
|
file(GLOB common ${PROJECT_SOURCE_DIR}/common/*.c)
|
||||||
|
|
||||||
include(Wayland)
|
include(Wayland)
|
||||||
WAYLAND_ADD_PROTOCOL_SERVER(proto-desktop-shell "${PROJECT_SOURCE_DIR}/protocols/desktop-shell.xml" desktop-shell)
|
WAYLAND_ADD_PROTOCOL_SERVER(proto-desktop-shell "${PROJECT_SOURCE_DIR}/protocols/desktop-shell.xml" desktop-shell)
|
||||||
|
|
|
@ -16,9 +16,9 @@ include_directories(
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
FILE(GLOB sources ${PROJECT_SOURCE_DIR}/*.c)
|
file(GLOB sources ${PROJECT_SOURCE_DIR}/*.c)
|
||||||
FILE(GLOB common ${PROJECT_SOURCE_DIR}/../common/*.c)
|
file(GLOB common ${PROJECT_SOURCE_DIR}/../common/*.c)
|
||||||
FILE(GLOB wl_sources ${PROJECT_SOURCE_DIR}/../wayland/*.c)
|
file(GLOB wl_sources ${PROJECT_SOURCE_DIR}/../wayland/*.c)
|
||||||
|
|
||||||
add_executable(swaybar
|
add_executable(swaybar
|
||||||
${sources}
|
${sources}
|
||||||
|
@ -28,7 +28,7 @@ add_executable(swaybar
|
||||||
${proto-desktop-shell}
|
${proto-desktop-shell}
|
||||||
)
|
)
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES(swaybar ${WAYLAND_CLIENT_LIBRARIES} ${WAYLAND_CURSOR_LIBRARIES} ${CAIRO_LIBRARIES} ${PANGO_LIBRARIES} m)
|
target_link_libraries(swaybar ${WAYLAND_CLIENT_LIBRARIES} ${WAYLAND_CURSOR_LIBRARIES} ${CAIRO_LIBRARIES} ${PANGO_LIBRARIES} m)
|
||||||
|
|
||||||
install(
|
install(
|
||||||
TARGETS swaybar
|
TARGETS swaybar
|
||||||
|
|
|
@ -16,9 +16,9 @@ include_directories(
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
FILE(GLOB sources ${PROJECT_SOURCE_DIR}/*.c)
|
file(GLOB sources ${PROJECT_SOURCE_DIR}/*.c)
|
||||||
FILE(GLOB common ${PROJECT_SOURCE_DIR}/../common/*.c)
|
file(GLOB common ${PROJECT_SOURCE_DIR}/../common/*.c)
|
||||||
FILE(GLOB wl_sources ${PROJECT_SOURCE_DIR}/../wayland/*.c)
|
file(GLOB wl_sources ${PROJECT_SOURCE_DIR}/../wayland/*.c)
|
||||||
|
|
||||||
add_executable(swaybg
|
add_executable(swaybg
|
||||||
${sources}
|
${sources}
|
||||||
|
@ -28,7 +28,7 @@ add_executable(swaybg
|
||||||
${proto-desktop-shell}
|
${proto-desktop-shell}
|
||||||
)
|
)
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES(swaybg ${WAYLAND_CLIENT_LIBRARIES} ${WAYLAND_CURSOR_LIBRARIES} ${CAIRO_LIBRARIES} ${PANGO_LIBRARIES} m)
|
target_link_libraries(swaybg ${WAYLAND_CLIENT_LIBRARIES} ${WAYLAND_CURSOR_LIBRARIES} ${CAIRO_LIBRARIES} ${PANGO_LIBRARIES} m)
|
||||||
|
|
||||||
install(
|
install(
|
||||||
TARGETS swaybg
|
TARGETS swaybg
|
||||||
|
|
|
@ -2,15 +2,15 @@ project(swaygrab)
|
||||||
|
|
||||||
set(CMAKE_CURRENT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/../bin/)
|
set(CMAKE_CURRENT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/../bin/)
|
||||||
|
|
||||||
FILE(GLOB sources ${PROJECT_SOURCE_DIR}/*.c)
|
file(GLOB sources ${PROJECT_SOURCE_DIR}/*.c)
|
||||||
FILE(GLOB common ${PROJECT_SOURCE_DIR}/../common/*.c)
|
file(GLOB common ${PROJECT_SOURCE_DIR}/../common/*.c)
|
||||||
|
|
||||||
add_executable(swaygrab
|
add_executable(swaygrab
|
||||||
${sources}
|
${sources}
|
||||||
${common}
|
${common}
|
||||||
)
|
)
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES(swaygrab rt)
|
target_link_libraries(swaygrab rt)
|
||||||
|
|
||||||
install(
|
install(
|
||||||
TARGETS swaygrab
|
TARGETS swaygrab
|
||||||
|
|
|
@ -2,8 +2,8 @@ project(swaymsg)
|
||||||
|
|
||||||
set(CMAKE_CURRENT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/../bin/)
|
set(CMAKE_CURRENT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/../bin/)
|
||||||
|
|
||||||
FILE(GLOB sources ${PROJECT_SOURCE_DIR}/*.c)
|
file(GLOB sources ${PROJECT_SOURCE_DIR}/*.c)
|
||||||
FILE(GLOB common ${PROJECT_SOURCE_DIR}/../common/*.c)
|
file(GLOB common ${PROJECT_SOURCE_DIR}/../common/*.c)
|
||||||
|
|
||||||
add_executable(swaymsg
|
add_executable(swaymsg
|
||||||
${sources}
|
${sources}
|
||||||
|
|
Loading…
Reference in a new issue