mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-29 07:25:27 +00:00
CMake: enable dynamic-link library for libavrdude
Add on option BUILD_SHARED_LIBS to also build a DLL variant of the libavrdude library. Turn it off by default to preserve current behavior.
This commit is contained in:
@@ -33,6 +33,7 @@ option(HAVE_PARPORT "Enable parallel port support" OFF)
|
|||||||
option(USE_EXTERNAL "Use external libraries from AVRDUDE GitHub repositories" OFF)
|
option(USE_EXTERNAL "Use external libraries from AVRDUDE GitHub repositories" OFF)
|
||||||
option(USE_LIBUSBWIN32 "Prefer libusb-win32 over libusb" OFF)
|
option(USE_LIBUSBWIN32 "Prefer libusb-win32 over libusb" OFF)
|
||||||
option(DEBUG_CMAKE "Enable debugging output for this CMake project" OFF)
|
option(DEBUG_CMAKE "Enable debugging output for this CMake project" OFF)
|
||||||
|
option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
|
||||||
|
|
||||||
include(CheckIncludeFile)
|
include(CheckIncludeFile)
|
||||||
include(CheckSymbolExists)
|
include(CheckSymbolExists)
|
||||||
@@ -476,7 +477,7 @@ endif()
|
|||||||
# Project
|
# Project
|
||||||
# =====================================
|
# =====================================
|
||||||
|
|
||||||
add_library(libavrdude STATIC
|
add_library(libavrdude
|
||||||
ac_cfg.h
|
ac_cfg.h
|
||||||
arduino.h
|
arduino.h
|
||||||
arduino.c
|
arduino.c
|
||||||
|
Reference in New Issue
Block a user