Skip to content

Commit cf8ca48

Browse files
authored
Merge pull request #16 from triccyx/master
Make available CppLinuxSerial to FetchContent
2 parents e84b2c4 + 11fcef3 commit cf8ca48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ file(GLOB_RECURSE CppLinuxSerial_HEADERS
88

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

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

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

0 commit comments

Comments
 (0)