Advance Wayland and KDE package bring-up
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
cmake_policy(SET CMP0048 OLD)
|
||||
project(old_header)
|
||||
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../modules)
|
||||
include(ECMSetupVersion)
|
||||
|
||||
ecm_setup_version(2.3.4
|
||||
VARIABLE_PREFIX Foo
|
||||
VERSION_HEADER "ecm_old_header_version.h"
|
||||
)
|
||||
|
||||
include(../version_helpers.cmake)
|
||||
standard_version_var_checks(Foo 2.3.4)
|
||||
|
||||
add_executable(check_header main.c)
|
||||
target_include_directories(check_header PRIVATE "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
#include <ecm_old_header_version.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define intcheck(macro,val) \
|
||||
if (macro != val) { \
|
||||
printf(#macro " was %d instead of %d", macro, val); \
|
||||
return 1; \
|
||||
}
|
||||
#define strcheck(macro,val) \
|
||||
if (strcmp(macro,val) != 0) { \
|
||||
printf(#macro " was %s instead of %s", macro, val); \
|
||||
return 1; \
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
intcheck(Foo_VERSION_MAJOR,2)
|
||||
intcheck(Foo_VERSION_MINOR,3)
|
||||
intcheck(Foo_VERSION_PATCH,4)
|
||||
intcheck(Foo_VERSION,((2 << 16) + (3 << 8) + 4))
|
||||
strcheck(Foo_VERSION_STRING,"2.3.4")
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user