Skip to content

Commit

Permalink
Add target_include_directories to CMakeLists
Browse files Browse the repository at this point in the history
  • Loading branch information
bunjdo authored Nov 10, 2021
1 parent ffd9c23 commit 23b22f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ option(ARGPARSE_STATIC "Build static library" ON)

if(ARGPARSE_SHARED)
add_library(argparse_shared SHARED ${sources})
target_include_directories(argparse_shared PUBLIC .)
set_target_properties(argparse_shared PROPERTIES OUTPUT_NAME argparse)
endif()
if(ARGPARSE_STATIC)
add_library(argparse STATIC ${sources})
target_include_directories(argparse PUBLIC .)
endif()
if(NOT (ARGPARSE_STATIC OR ARGPARSE_SHARED))
add_library(argparse OBJECT ${sources})
Expand Down

0 comments on commit 23b22f3

Please sign in to comment.