Fix target_sources.

This commit is contained in:
tastytea 2020-01-03 16:20:27 +01:00
parent 94dd5f605d
commit e88238a37c
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 2 deletions

View File

@ -9,8 +9,7 @@ add_library(${PROJECT_NAME})
file(GLOB_RECURSE sources_lib *.cpp)
file(GLOB_RECURSE headers_lib ../include/*.hpp)
target_sources(${PROJECT_NAME}
PRIVATE "${sources_lib}"
PUBLIC "${headers_lib}")
PRIVATE "${sources_lib}" "${headers_lib}")
set_target_properties(${PROJECT_NAME} PROPERTIES
VERSION ${PROJECT_VERSION}