Skip to content

Commit

Permalink
fix: Fixed not adding include directories
Browse files Browse the repository at this point in the history
  • Loading branch information
alinalihassan committed Aug 30, 2022
1 parent cb5522e commit 94071d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ option(BUILD_SHARED_LIBS "Build libraries as shared as opposed to static" ON)
add_library(${LIB_NAME} ${COMMON_SOURCES})
target_link_libraries(${LIB_NAME} ${COMMON_LIBS})

target_include_directories(${LIB_NAME} PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>"
"$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")

# Lesma executables
add_executable(${CLI_NAME} ${CLI_SOURCES})
add_executable(tests ${TEST_SOURCES})
Expand Down

0 comments on commit 94071d8

Please sign in to comment.