Skip to content

Commit 8f4f9d0

Browse files
authored
Merge pull request gabrielkim13#1 from tonuonu/main
make CMake happy if this project is used as a subproject of others
2 parents 31cfd89 + f5e0b6e commit 8f4f9d0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,11 @@ add_library(
4848
src/operations/string/substr.cpp
4949
)
5050

51+
target_include_directories(
52+
${PROJECT_NAME}
53+
PUBLIC
54+
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/src/>
55+
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/lib/json/include/nlohmann/>
56+
)
57+
5158
add_subdirectory(test)

0 commit comments

Comments
 (0)