cnmake: remove double lib naming
authorRobin Krens <robin@robinkrens.nl>
Thu, 26 Jan 2023 15:01:11 +0000 (16:01 +0100)
committerRobin Krens <robin@robinkrens.nl>
Thu, 26 Jan 2023 15:01:11 +0000 (16:01 +0100)
CMakeLists.txt

index 2fd6f5a..4f446fc 100644 (file)
@@ -1,5 +1,5 @@
 cmake_minimum_required(VERSION 3.5)
-project(libsi24
+project(si24
     VERSION 0.30.0
     LANGUAGES C
 )
@@ -8,9 +8,9 @@ set(PROJECT_HOMEPAGE_URL https://github.com/robinkrens/libsi24)
 
 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}>
@@ -20,7 +20,7 @@ target_include_directories(libsi24
 
 include(GNUInstallDirs)
 
-install(TARGETS libsi24
+install(TARGETS si24
     EXPORT libsi24-export
     LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
     ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}