-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
30 lines (22 loc) · 859 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
29
cmake_minimum_required(VERSION 3.0)
project("alterator-browser")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
execute_process(
COMMAND
bash -c "grep 'Version:' .gear/alterator-browser.spec | awk -F ':' '{ print $2 }' | tr -d [:space:]"
OUTPUT_VARIABLE ALTCENTER_GEAR_VERSION
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
message (${ALTCENTER_GEAR_VERSION})
string(REPLACE "." ";" ADT_VERSION_LIST ${ALTCENTER_GEAR_VERSION})
list(GET ALTCENTER_VERSION_LIST 0 ALTCENTER_VERSION_MAJOR)
list(GET ALTCENTER_VERSION_LIST 1 ALTCENTER_VERSION_MINOR)
list(GET ALTCENTER_VERSION_LIST 2 ALTCENTER_VERSION_PATCH)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
include(${CMAKE_MODULE_PATH}/TranslationUtils.cmake)
include(CheckCXXCompilerFlag)
if(UNIX)
include(GNUInstallDirs)
else()
message(FATAL_ERROR "System not Linux")
endif()
add_subdirectory(src)