From 1e0496b6676b30642305e09f6f7dbe7966f87f0e Mon Sep 17 00:00:00 2001 From: David Timber Date: Wed, 28 Aug 2024 14:08:09 +0200 Subject: Initial commit --- CMakeLists.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..1acd219 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,24 @@ +cmake_minimum_required(VERSION 3.10) + +project(xbouncing VERSION 0.0.0) + +set(CMAKE_C_STANDARD 11) +set(CMAKE_C_STANDARD_REQUIRED True) + +configure_file( + src/config.h.in + ${CMAKE_BINARY_DIR}/config.h) + +add_compile_options(-Wall -Wextra) + +add_library(libxbouncing + ${CMAKE_BINARY_DIR}/config.h + src/xbm.c +) + +include(FindX11) + +add_executable(xbouncing src/xbouncing.c) +add_executable(parse-xbm src/parse-xbm.c) +target_link_libraries(parse-xbm libxbouncing) +target_link_libraries(xbouncing libxbouncing ${X11_LIBRARIES} ${X11_Xrandr_LIB} m) -- cgit