Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge branch 'jb48781' into 'master'
[libsystrace] Build using cmake instead of qmake. Fixes JB#48781 See merge request mer-core/libsystrace!1
- Loading branch information
Showing
4 changed files
with
48 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
cmake_minimum_required(VERSION 3.0.0) | ||
|
||
# Remove git hash from version number if present | ||
string(REGEX REPLACE "([0-9.]+).*" "\\1" VERSION "${VERSION}") | ||
|
||
project(systrace VERSION ${VERSION} LANGUAGES C DESCRIPTION "Systrace library") | ||
|
||
include(GNUInstallDirs) | ||
|
||
add_library(systrace SHARED src/systrace.c) | ||
|
||
set_target_properties(systrace | ||
PROPERTIES VERSION ${PROJECT_VERSION} | ||
SOVERSION ${PROJECT_VERSION_MAJOR} | ||
PUBLIC_HEADER src/systrace.h) | ||
|
||
configure_file(systrace.pc.in systrace.pc @ONLY) | ||
|
||
install(TARGETS systrace | ||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) | ||
|
||
install(FILES ${CMAKE_BINARY_DIR}/systrace.pc | ||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
prefix=@CMAKE_INSTALL_PREFIX@ | ||
exec_prefix=${prefix} | ||
libdir=${prefix}/lib@LIB_SUFFIX@ | ||
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ | ||
|
||
Name: Systrace | ||
Description: Systrace Library | ||
Version: @PROJECT_VERSION@ | ||
Libs: -lsystrace | ||
Cflags: |