-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
29 lines (25 loc) · 978 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
project(OrgModeParser)
cmake_minimum_required(VERSION 3.2.0 FATAL_ERROR)
include(GenerateExportHeader)
find_package(Qt5Core 5.3.0 REQUIRED NO_MODULE)
enable_testing()
set(CMAKE_AUTOMOC ON)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
FIND_PACKAGE(Git REQUIRED)
EXECUTE_PROCESS(COMMAND ${GIT_EXECUTABLE} describe --always --dirty --tags --abbrev=7
RESULT_VARIABLE GIT_RESULT
OUTPUT_VARIABLE OrgModeParser_VERSION
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_STRIP_TRAILING_WHITESPACE )
IF (GIT_RESULT EQUAL 0)
MESSAGE("Building OrgModeParser version ${OrgModeParser_VERSION}.")
ELSE ()
MESSAGE(FATAL_ERROR "Cannot determine OrgModeParser version from git!")
ENDIF ()
SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
add_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII)
add_subdirectory(Parser)
add_subdirectory(AutoTests)
add_subdirectory(Demos/TODOCounter)
add_subdirectory(Tools/ClockTimeSummary)