2016-05-19 14:41:06 +00:00
|
|
|
#
|
|
|
|
# Build configuration
|
|
|
|
#
|
2016-11-02 19:22:45 +00:00
|
|
|
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
|
2016-05-24 12:24:45 +00:00
|
|
|
|
2016-11-19 05:22:44 +00:00
|
|
|
project(polybar C CXX)
|
2016-05-19 14:41:06 +00:00
|
|
|
|
2016-11-02 19:22:45 +00:00
|
|
|
set(CMAKE_MODULE_PATH
|
|
|
|
${CMAKE_MODULE_PATH}
|
|
|
|
${PROJECT_SOURCE_DIR}/cmake
|
|
|
|
${PROJECT_SOURCE_DIR}/cmake/modules)
|
2016-05-20 09:20:58 +00:00
|
|
|
|
2016-11-02 19:22:45 +00:00
|
|
|
include(utils)
|
|
|
|
include(build/core)
|
|
|
|
include(build/options)
|
|
|
|
include(build/targets)
|
|
|
|
include(build/summary)
|
2016-06-15 03:32:35 +00:00
|
|
|
|
|
|
|
add_subdirectory(${PROJECT_SOURCE_DIR}/man)
|
|
|
|
add_subdirectory(${PROJECT_SOURCE_DIR}/src ${PROJECT_BINARY_DIR}/bin)
|
2016-12-23 17:10:19 +00:00
|
|
|
add_subdirectory(${PROJECT_SOURCE_DIR}/doc ${PROJECT_BINARY_DIR}/doc)
|
2017-01-25 22:28:25 +00:00
|
|
|
add_subdirectory(${PROJECT_SOURCE_DIR}/doc/zsh ${PROJECT_BINARY_DIR}/doc/zsh)
|
2016-10-24 23:46:26 +00:00
|
|
|
|
2016-10-12 05:17:03 +00:00
|
|
|
if(BUILD_TESTS)
|
2016-10-24 23:46:26 +00:00
|
|
|
add_subdirectory(${PROJECT_SOURCE_DIR}/tests ${PROJECT_BINARY_DIR}/tests)
|
|
|
|
else()
|
2016-10-12 05:17:03 +00:00
|
|
|
add_subdirectory(${PROJECT_SOURCE_DIR}/tests ${PROJECT_BINARY_DIR}/tests EXCLUDE_FROM_ALL)
|
|
|
|
endif()
|