1include_directories(${CMAKE_CURRENT_SOURCE_DIR})
2
3# Build the libctwm_client library
4add_library(ctwmc SHARED libctwm.c)
5
6# There's a demolib that links against it
7add_executable(demolib demolib.c)
8target_link_libraries(demolib ctwmc ${X11_LIBRARIES})
9
10# There's also a 'gtw' that doesn't, but is sorta client-like...
11add_executable(gtw gtw.c)
12target_link_libraries(gtw ${X11_LIBRARIES})
13
14# A program to [attempt to] forward keystrokes from layered root-ish
15# windows.
16add_executable(forward forward.c)
17target_link_libraries(forward ${X11_LIBRARIES})
18
19
20# Meta-target
21add_custom_target(client
22	DEPENDS demolib gtw
23)
24
25# Mention it
26message(STATUS "Building libctwmc and demolib.")
27