Update CMake to expose lib as PUBLIC/PRIVATE and not INTERFACE

This commit is contained in:
Tilen M 2024-09-03 21:42:02 +02:00
parent 6a3faf74ff
commit 94a74e3aa4
2 changed files with 5 additions and 3 deletions

View File

@ -2,6 +2,8 @@
## Develop
- Rework library CMake with removed INTERFACE type
## 1.2.0
- Change license year to 2022

View File

@ -26,9 +26,9 @@ set(lwshell_include_DIRS
)
# Register library to the system
add_library(lwshell INTERFACE)
target_sources(lwshell INTERFACE ${lwshell_core_SRCS})
target_include_directories(lwshell INTERFACE ${lwshell_include_DIRS})
add_library(lwshell)
target_sources(lwshell PRIVATE ${lwshell_core_SRCS})
target_include_directories(lwshell PUBLIC ${lwshell_include_DIRS})
target_compile_options(lwshell PRIVATE ${LWSHELL_COMPILE_OPTIONS})
target_compile_definitions(lwshell PRIVATE ${LWSHELL_COMPILE_DEFINITIONS})