cmake_minimum_required(VERSION 3.5)
-project(libsi24
+project(si24
VERSION 0.30.0
LANGUAGES C
)
add_compile_options(-Wall -Wextra -pedantic)
-add_library(libsi24 libsi24.c)
+add_library(si24 libsi24.c)
-target_include_directories(libsi24
+target_include_directories(si24
PUBLIC
$<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
include(GNUInstallDirs)
-install(TARGETS libsi24
+install(TARGETS si24
EXPORT libsi24-export
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}