Skip to content

Commit

Permalink
Add CMake script as an alternative build method. (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
jm4rtin authored Apr 9, 2020
1 parent 2ec0b7a commit b6712c6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright (C) 2010 Johannes Weißl <[email protected]>
# License: MIT License
# URL: https://github.com/weisslj/cpp-optparse

# CMake script and other modifications
# Copyright (C) 2020 EM Microelectronic
# URL: https://github.com/emmicro-us/cpp-optparse

CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)

PROJECT(OptionParser)

ADD_LIBRARY(${PROJECT_NAME} STATIC ${PROJECT_NAME}.cpp)

TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME} PUBLIC .)

0 comments on commit b6712c6

Please sign in to comment.