Skip to content

Commit

Permalink
CMake add namespaced alias for library target
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Dec 13, 2022
1 parent c4a7a83 commit 65d0ccc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ include(cmake/CPM.cmake)

message(STATUS "Configuring ${PROJECT_NAME} library...")
add_library(${PROJECT_NAME} INTERFACE)
add_library(chowdsp::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
target_include_directories(${PROJECT_NAME} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include)

if(MSVC)
Expand Down

0 comments on commit 65d0ccc

Please sign in to comment.