Skip to content

Commit

Permalink
Merge pull request #16 from triccyx/master
Browse files Browse the repository at this point in the history
Make available CppLinuxSerial to FetchContent
  • Loading branch information
gbmhunter authored Aug 22, 2021
2 parents e84b2c4 + 11fcef3 commit cf8ca48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ file(GLOB_RECURSE CppLinuxSerial_HEADERS

add_library(CppLinuxSerial ${CppLinuxSerial_SRC} ${CppLinuxSerial_HEADERS})

target_include_directories(CppLinuxSerial PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_include_directories(CppLinuxSerial PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>"
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}>")

# On Linux, "sudo make install" will typically copy the library
# into the folder /usr/local/bin
Expand Down

0 comments on commit cf8ca48

Please sign in to comment.