Bump version to 1.0.2

This commit is contained in:
Václav Valíček 2020-05-16 23:42:11 +02:00
parent 273b5a830b
commit 8dc639e301
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.9) cmake_minimum_required(VERSION 3.9)
project(test_shared_library LANGUAGES C VERSION 1.0.1 DESCRIPTION "Shared C Library for testin") project(test_shared_library LANGUAGES C VERSION 1.0.2 DESCRIPTION "Shared C Library for testing of various cmake configurations")
include(GNUInstallDirs) include(GNUInstallDirs)
add_library(test_shared_library SHARED test_shared_library.c test_shared_library.h) add_library(test_shared_library SHARED test_shared_library.c test_shared_library.h)
set(CMAKE_C_STANDARD 99) set(CMAKE_C_STANDARD 99)
@ -21,4 +21,4 @@ install(FILES ${CMAKE_BINARY_DIR}/test_shared_library.pc
add_executable(test test.c) add_executable(test test.c)
target_link_libraries(test test_shared_library) target_link_libraries(test test_shared_library)

4
test.c
View File

@ -1,7 +1,9 @@
#include <stdio.h> #include <stdio.h>
#include "test_shared_library.h" #include "test_shared_library.h"
int main(void){ int main(void) {
printf("Program should print \"Hello World\" by calling library function "
"and return number 12.\n----\n");
printf("Hello result: %d\n", hello(12)); printf("Hello result: %d\n", hello(12));
return 0; return 0;
} }