mirror of
https://github.com/MaJerle/lwshell.git
synced 2025-01-25 13:02:54 +08:00
Update CMakeLists.txt for each library and split core and optional modules
This commit is contained in:
parent
9fb392cda4
commit
6c66ce980c
2
.vscode/c_cpp_properties.json
vendored
2
.vscode/c_cpp_properties.json
vendored
@ -3,7 +3,7 @@
|
||||
{
|
||||
"name": "Win32",
|
||||
"includePath": [
|
||||
"${workspaceFolder}\\dev\\VisualStudio\\",
|
||||
"${workspaceFolder}\\dev\\",
|
||||
"${workspaceFolder}\\lwshell\\src\\include\\"
|
||||
],
|
||||
"defines": [
|
||||
|
@ -1,20 +1,14 @@
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
|
||||
# Debug message
|
||||
message("LWSHELL: Entering lib source CMakeLists.txt")
|
||||
message("Entering ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt")
|
||||
|
||||
# Set library name
|
||||
set(LWSHELL_LIB_NAME "lwshell")
|
||||
# Register core library
|
||||
add_library(lwshell INTERFACE)
|
||||
target_sources(lwshell PUBLIC ${CMAKE_CURRENT_LIST_DIR}/src/lwshell/lwshell.c)
|
||||
target_include_directories(lwshell INTERFACE ${CMAKE_CURRENT_LIST_DIR}/src/include)
|
||||
|
||||
# Register library to the system
|
||||
add_library(${LWSHELL_LIB_NAME} INTERFACE)
|
||||
# Register other modules
|
||||
|
||||
# Setup generic source files
|
||||
target_sources(${LWSHELL_LIB_NAME} INTERFACE
|
||||
${CMAKE_CURRENT_LIST_DIR}/src/lwshell/lwshell.c
|
||||
)
|
||||
|
||||
# Setup include directories
|
||||
target_include_directories(${LWSHELL_LIB_NAME} INTERFACE
|
||||
${CMAKE_CURRENT_LIST_DIR}/src/include
|
||||
)
|
||||
# Debug message
|
||||
message("Exiting ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt")
|
||||
|
Loading…
x
Reference in New Issue
Block a user