Skip to content

Commit

Permalink
Add support for CMake submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
h3x4n1um committed Nov 10, 2020
1 parent a5a5b4d commit fde45e4
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 fde45e4

Please sign in to comment.