add alias nana::nana in CMakeLists.txt

This commit adds the alias to allow the use of nana::nana in other projects as per guideline https://gist.github.com/mbinna/c61dbb39bca0e4fb7d1f73b0d66a4fd1#using-a-library-defined-in-the-same-cmake-tree-should-look-the-same-as-using-an-external-library.

This change should not break anything, it only adds an alternative name
This commit is contained in:
Xeverous 2019-05-30 10:59:45 +02:00 committed by GitHub
parent ffa170b5f5
commit b0ae6425ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,6 +30,7 @@ project(nana VERSION 1.6.2
####################### Main setting of Nana targets, sources and installs ##################### ####################### Main setting of Nana targets, sources and installs #####################
add_library(nana) add_library(nana)
add_library(nana::nana ALIAS nana)
target_compile_features(nana PUBLIC cxx_std_17) target_compile_features(nana PUBLIC cxx_std_17)
# need after cxx_std_14 or cxx_std_17 ?? # need after cxx_std_14 or cxx_std_17 ??