mirror of
https://github.com/polybar/polybar.git
synced 2024-10-27 05:23:39 -04:00
27 lines
719 B
CMake
27 lines
719 B
CMake
#
|
|
# Build configuration
|
|
#
|
|
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
|
|
|
|
project(lemonbuddy C CXX)
|
|
|
|
set(CMAKE_MODULE_PATH
|
|
${CMAKE_MODULE_PATH}
|
|
${PROJECT_SOURCE_DIR}/cmake
|
|
${PROJECT_SOURCE_DIR}/cmake/modules)
|
|
|
|
include(utils)
|
|
include(build/core)
|
|
include(build/options)
|
|
include(build/targets)
|
|
include(build/summary)
|
|
|
|
add_subdirectory(${PROJECT_SOURCE_DIR}/man)
|
|
add_subdirectory(${PROJECT_SOURCE_DIR}/src ${PROJECT_BINARY_DIR}/bin)
|
|
add_subdirectory(${PROJECT_SOURCE_DIR}/examples ${PROJECT_BINARY_DIR}/examples)
|
|
|
|
if(BUILD_TESTS)
|
|
add_subdirectory(${PROJECT_SOURCE_DIR}/tests ${PROJECT_BINARY_DIR}/tests)
|
|
else()
|
|
add_subdirectory(${PROJECT_SOURCE_DIR}/tests ${PROJECT_BINARY_DIR}/tests EXCLUDE_FROM_ALL)
|
|
endif()
|