Skip to content

Commit

Permalink
Use target_include_directories
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Aug 8, 2019
1 parent 660db7f commit 049c40a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ set(LIB_SOURCES src/verilogAST.cpp)

set(LIBRARY_NAME verilogAST)
add_library(${LIBRARY_NAME} SHARED ${LIB_SOURCES})
target_include_directories(${LIBRARY_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
PRIVATE src
)

if (VERILOGAST_BUILD_TESTS)
# Download and unpack googletest at configure time
Expand Down

0 comments on commit 049c40a

Please sign in to comment.