|
|
@ -9,14 +9,14 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
|
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
|
|
|
|
add_definitions(
|
|
|
|
add_definitions(
|
|
|
|
-D_GNU_SOURCE
|
|
|
|
-D_GNU_SOURCE
|
|
|
|
)
|
|
|
|
)
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wextra")
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wextra")
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-parameter")
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-parameter")
|
|
|
|
|
|
|
|
|
|
|
|
list(INSERT CMAKE_MODULE_PATH 0
|
|
|
|
list(INSERT CMAKE_MODULE_PATH 0
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/CMake
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/CMake
|
|
|
|
)
|
|
|
|
)
|
|
|
|
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git)
|
|
|
|
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git)
|
|
|
|
execute_process(
|
|
|
|
execute_process(
|
|
|
|
COMMAND git describe --always
|
|
|
|
COMMAND git describe --always
|
|
|
@ -117,12 +117,12 @@ install(
|
|
|
|
FILES ${CMAKE_CURRENT_SOURCE_DIR}/sway.desktop
|
|
|
|
FILES ${CMAKE_CURRENT_SOURCE_DIR}/sway.desktop
|
|
|
|
DESTINATION share/wayland-sessions
|
|
|
|
DESTINATION share/wayland-sessions
|
|
|
|
COMPONENT data
|
|
|
|
COMPONENT data
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
install(
|
|
|
|
install(
|
|
|
|
FILES ${CMAKE_CURRENT_SOURCE_DIR}/wallpaper.jpg
|
|
|
|
FILES ${CMAKE_CURRENT_SOURCE_DIR}/wallpaper.jpg
|
|
|
|
DESTINATION share/sway
|
|
|
|
DESTINATION share/sway
|
|
|
|
COMPONENT data
|
|
|
|
COMPONENT data
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
feature_summary(WHAT ALL)
|
|
|
|
feature_summary(WHAT ALL)
|
|
|
|