Skip to content

Commit

Permalink
cmake: Build shared lib by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
radarsat1 committed Jul 13, 2018
1 parent 8930d6e commit 4e35607
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
# Set minimum CMake required version for this project.
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)

# Options
option(BUILD_SHARED_LIBS "Compile library as shared lib." TRUE)

# Define a C++ project.
project(RtMidi LANGUAGES CXX)

# Create library target.
add_library(rtmidi RtMidi.h
RtMidi.cpp)
add_library(rtmidi SHARED RtMidi.h RtMidi.cpp)

# Read version info from configure.ac
set(R "m4_define\\(\\[lt_([a-z]+)\\], ([0-9]+)\\)")
Expand Down

0 comments on commit 4e35607

Please sign in to comment.