2019-02-16 11:36:30 +00:00
|
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
|
|
|
|
PROJECT(bemenu C)
|
2014-03-18 17:35:10 +00:00
|
|
|
SET(BEMENU_NAME "bemenu")
|
|
|
|
SET(BEMENU_DESCRIPTION "Dynamic menu library and client program inspired by dmenu")
|
2019-03-03 18:46:30 +00:00
|
|
|
SET(BEMENU_VERSION "0.1.0")
|
2019-02-16 06:30:53 +00:00
|
|
|
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/CMake)
|
2014-10-22 19:46:51 +00:00
|
|
|
|
2019-03-24 13:57:48 +00:00
|
|
|
OPTION(BEMENU_CURSES_RENDERER "Build curses backend" ON)
|
|
|
|
OPTION(BEMENU_X11_RENDERER "Build X11 backend" ON)
|
|
|
|
OPTION(BEMENU_WAYLAND_RENDERER "Build wayland renderer" OFF)
|
|
|
|
|
2014-10-25 13:39:39 +00:00
|
|
|
INCLUDE(CTest)
|
|
|
|
INCLUDE(GetGitRevisionDescription)
|
|
|
|
get_git_head_revision(GIT_REFSPEC GIT_SHA1)
|
|
|
|
|
2015-01-17 16:52:21 +00:00
|
|
|
# C99 and _GNU_SOURCE for secure_getenv
|
|
|
|
ADD_DEFINITIONS(-std=c99 -D_GNU_SOURCE)
|
2014-03-18 17:35:10 +00:00
|
|
|
|
|
|
|
# Compile library
|
|
|
|
ADD_SUBDIRECTORY(lib)
|
|
|
|
|
|
|
|
# Compile client
|
|
|
|
ADD_SUBDIRECTORY(client)
|
|
|
|
|
|
|
|
# Compile tests
|
|
|
|
ADD_SUBDIRECTORY(test)
|
|
|
|
|
|
|
|
# Generate documentation (make doxygen)
|
|
|
|
ADD_SUBDIRECTORY(doxygen)
|
|
|
|
|
|
|
|
# vim: set ts=8 sw=4 tw=0
|