Skip to content

Commit

Permalink
Merge pull request #9 from h3x4n1um/cmake-submodule
Browse files Browse the repository at this point in the history
Add support for CMake submodule
  • Loading branch information
nlohmann committed Nov 11, 2020
2 parents a5a5b4d + fd37ab5 commit fbcbb52
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Expand Up @@ -25,3 +25,12 @@ endif(MSVC)
include_directories(
src test
)

add_library(${PROJECT_NAME} INTERFACE)
add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})

target_include_directories(
${PROJECT_NAME}
INTERFACE
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src/>
)

0 comments on commit fbcbb52

Please sign in to comment.