mirror of
https://github.com/linux-can/can-utils.git
synced 2026-09-20 14:29:55 +02:00
CMakeLists.txt: add an option to control shared library creation
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
This commit is contained in:
+2
-1
@@ -19,6 +19,7 @@ endif()
|
|||||||
# Add an option to enable treating warnings as errors
|
# Add an option to enable treating warnings as errors
|
||||||
option(ENABLE_WERROR "Treat all compiler warnings as errors" OFF)
|
option(ENABLE_WERROR "Treat all compiler warnings as errors" OFF)
|
||||||
option(ENABLE_GPS "Enable GPS support" OFF)
|
option(ENABLE_GPS "Enable GPS support" OFF)
|
||||||
|
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
|
||||||
|
|
||||||
find_package(PkgConfig REQUIRED)
|
find_package(PkgConfig REQUIRED)
|
||||||
if(ENABLE_GPS)
|
if(ENABLE_GPS)
|
||||||
@@ -129,7 +130,7 @@ if(NOT ANDROID)
|
|||||||
PRIVATE can
|
PRIVATE can
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(isobusfs SHARED
|
add_library(isobusfs
|
||||||
isobusfs/isobusfs_cmn.c
|
isobusfs/isobusfs_cmn.c
|
||||||
isobusfs/isobusfs_cmn_dh.c
|
isobusfs/isobusfs_cmn_dh.c
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user