Commit d330f6d1 authored by Weng Xuetian's avatar Weng Xuetian

first commit, skeleton only

parents
build*/
.*
!.git*
.git/
*.tar.*
*.kdev4
*.kate-swp
*.orig
tags
astyle.sh
cscope.*
*.part
cmake_minimum_required(VERSION 3.0.0)
set(FCITX_VERSION 4.99.0)
project(fcitx VERSION ${FCITX_VERSION})
find_package(ECM REQUIRED 1.0.0)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
#######################################################################
# CMake macros
#######################################################################
include(FeatureSummary)
#######################################################################
# Options
#######################################################################
option(ENABLE_TEST "Build Test" On)
option(ENABLE_COVERAGE "Build the project with gcov support (Need ENABLE_TEST=On)" Off)
#######################################################################
# Test features
#######################################################################
if (ENABLE_TEST)
enable_testing()
add_subdirectory(test)
if (BUILD_COVERAGE)
add_custom_target(coverage
COMMAND "${CMAKE_CTEST_COMMAND}"
COMMAND lcov --capture --directory ./ --output-file coverage.info
COMMAND genhtml coverage.info --output-directory "coverage_pages"
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
endif()
endif ()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
Next generation of fcitx
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment