diff options
-rw-r--r-- | CMakeLists.txt | 28 | ||||
-rw-r--r-- | avirt.pc.in | 11 |
2 files changed, 1 insertions, 38 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e48f289..d56960b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,24 +2,7 @@ # LIBAVIRT CONFIGURATION LIBRARY #------------------------------------------------------------------------------- -cmake_minimum_required(VERSION 3.3) - -include(GNUInstallDirs) - -set(TARGET_NAME "avirt") -set(PROJECT_PRETTY_NAME "AVIRT") -set(PROJECT_DESCRIPTION "ALSA Virtual Dynamic Sound Driver userspace library") -set(PROJECT_URL "https://gerrit.automotivelinux.org:29418/src/libavirt") -set(PROJECT_AUTHOR "Farrugia, Mark") -set(PROJECT_AUTHOR_MAIL "mark.farrugia@fiberdyne.com.au") -set(PROJECT_LICENSE "APL2.0") -set(PROJECT_LANGUAGES "C") - -if(NOT CMAKE_INSTALL_PREFIX) - set(CMAKE_INSTALL_PREFIX "/usr") -endif() - -add_compile_options(-DAFB_BINDING_VERSION=3 -Wall -Wextra -Wconversion -Wno-unused-parameter -Wno-sign-compare -Wno-sign-conversion -Werror=maybe-uninitialized -Werror=implicit-function-declaration -ffunction-sections -fdata-sections -fPIC) +PROJECT_TARGET_ADD(avirt) # Target file(GLOB SOURCE_FILES "src/avirt-*.c") @@ -27,12 +10,3 @@ add_library(avirt STATIC ${SOURCE_FILES}) # Target includes target_include_directories(avirt PUBLIC include) - -# Install -configure_file(avirt.pc.in avirt.pc @ONLY) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/avirt.pc - DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) -install(TARGETS ${TARGET_NAME} - DESTINATION ${CMAKE_INSTALL_LIBDIR}) -install(FILES include/avirt/avirt.h - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/avirt) diff --git a/avirt.pc.in b/avirt.pc.in deleted file mode 100644 index 7acefa6..0000000 --- a/avirt.pc.in +++ /dev/null @@ -1,11 +0,0 @@ -prefix=@CMAKE_INSTALL_PREFIX@ -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include - -Name: @TARGET_NAME@ -Description: @PROJECT_DESCRIPTION@ -Version: @PROJECT_VERSION@ -URL: @PROJECT_URL@ -Libs: -L@CMAKE_INSTALL_LIBDIR@ -l@TARGET_NAME@ -Cflags: -I${includedir}
\ No newline at end of file |