25 lines
620 B
CMake
25 lines
620 B
CMake
CMAKE_MINIMUM_REQUIRED(VERSION 3.14 FATAL_ERROR)
|
|
|
|
PROJECT(vCPE_project)
|
|
|
|
set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/usr/local/lib/pkgconfig")
|
|
SET(URI_HOME "${CMAKE_SOURCE_DIR}/libs")
|
|
|
|
EXECUTE_PROCESS(COMMAND git describe --tags --always --dirty=-dev
|
|
OUTPUT_VARIABLE GIT_TAG)
|
|
|
|
if ("${GIT_TAG}" STREQUAL "")
|
|
STRING(TIMESTAMP COMPILE_TIME %Y-%m-%d_%H:%M:%S)
|
|
SET(GIT_TAG ${COMPILE_TIME})
|
|
else ()
|
|
STRING(REGEX REPLACE "\n$" "" GIT_TAG ${GIT_TAG})
|
|
endif ()
|
|
|
|
|
|
MESSAGE("Version: " ${GIT_TAG})
|
|
|
|
ADD_SUBDIRECTORY(srcs)
|
|
ADD_SUBDIRECTORY(srcs/libs)
|
|
#ADD_SUBDIRECTORY(srcs/test)
|
|
ADD_SUBDIRECTORY(srcs/lwip)
|