Skip to content

Commit

Permalink
Merge pull request #610 from sleep-walker/master
Browse files Browse the repository at this point in the history
CMake related improvements
  • Loading branch information
ddevault committed Apr 28, 2016
2 parents 89af3f7 + 1124e78 commit 17543d3
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.1.0)

project(sway C)

set(CMAKE_C_FLAGS "-g")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g")
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_EXTENSIONS OFF)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
Expand Down
3 changes: 2 additions & 1 deletion common/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
include_directories(
${WLC_INCLUDE_DIRS}
${XKBCOMMON_INCLUDE_DIRS}
)

add_library(sway-common
add_library(sway-common STATIC
ipc-client.c
list.c
log.c
Expand Down
3 changes: 2 additions & 1 deletion protocols/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ WAYLAND_ADD_PROTOCOL_SERVER(proto-server-swaylock
swaylock
)

add_library(sway-protocols
add_library(sway-protocols STATIC
${proto-client-xdg-shell}
${proto-client-desktop-shell}
${proto-server-desktop-shell}
Expand All @@ -31,3 +31,4 @@ add_library(sway-protocols
)

set(PROTOCOLS_INCLUDE_DIRS ${CMAKE_BINARY_DIR}/protocols PARENT_SCOPE)
INCLUDE_DIRECTORIES(${WAYLAND_INCLUDE_DIR} ${XKBCOMMON_INCLUDE_DIRS})
1 change: 1 addition & 0 deletions sway/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ include_directories(
${LIBINPUT_INCLUDE_DIRS}
${CAIRO_INCLUDE_DIRS}
${PANGO_INCLUDE_DIRS}
${WAYLAND_INCLUDE_DIR}
)

add_executable(sway
Expand Down
3 changes: 2 additions & 1 deletion swaybar/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
include_directories(
${PROTOCOLS_INCLUDE_DIRS}
${WAYLAND_CLIENT_INCLUDE_DIR}
${WAYLAND_INCLUDE_DIR}
${CAIRO_INCLUDE_DIRS}
${PANGO_INCLUDE_DIRS}
${JSONC_INCLUDE_DIRS}
${XKBCOMMON_INCLUDE_DIRS}
)

add_executable(swaybar
Expand Down
3 changes: 2 additions & 1 deletion swaybg/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
include_directories(
${PROTOCOLS_INCLUDE_DIRS}
${WAYLAND_CLIENT_INCLUDE_DIR}
${WAYLAND_INCLUDE_DIR}
${CAIRO_INCLUDE_DIRS}
${PANGO_INCLUDE_DIRS}
${XKBCOMMON_INCLUDE_DIRS}
)

add_executable(swaybg
Expand Down
1 change: 1 addition & 0 deletions swaygrab/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
include_directories(
${JSONC_INCLUDE_DIRS}
${WLC_INCLUDE_DIRS}
${XKBCOMMON_INCLUDE_DIRS}
)

add_executable(swaygrab
Expand Down
3 changes: 2 additions & 1 deletion swaylock/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
include_directories(
${PROTOCOLS_INCLUDE_DIRS}
${WAYLAND_CLIENT_INCLUDE_DIR}
${WAYLAND_INCLUDE_DIR}
${CAIRO_INCLUDE_DIRS}
${PANGO_INCLUDE_DIRS}
${PAM_INCLUDE_DIRS}
${JSONC_INCLUDE_DIRS}
${XKBCOMMON_INCLUDE_DIRS}
)

add_executable(swaylock
Expand Down
3 changes: 2 additions & 1 deletion wayland/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ include_directories(
${PROTOCOLS_INCLUDE_DIRS}
${PANGO_INCLUDE_DIRS}
${XKBCOMMON_INCLUDE_DIRS}
${WAYLAND_INCLUDE_DIR}
)

add_library(sway-wayland
add_library(sway-wayland STATIC
buffers.c
pango.c
registry.c
Expand Down

0 comments on commit 17543d3

Please sign in to comment.