mirror of
https://github.com/MaJerle/lwmem.git
synced 2025-01-13 21:42:53 +08:00
Update cmake
This commit is contained in:
parent
cbc215be11
commit
d9f91da6df
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@ -8,7 +8,7 @@
|
|||||||
"name": "(Windows) Launch",
|
"name": "(Windows) Launch",
|
||||||
"type": "cppdbg",
|
"type": "cppdbg",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "${workspaceFolder}\\build\\LwLibPROJECT.exe",
|
"program": "${workspaceFolder}\\build\\LwMEM.exe",
|
||||||
"miDebuggerPath": "c:\\msys64\\mingw64\\bin\\gdb.exe",
|
"miDebuggerPath": "c:\\msys64\\mingw64\\bin\\gdb.exe",
|
||||||
"args": [],
|
"args": [],
|
||||||
"stopAtEntry": false,
|
"stopAtEntry": false,
|
||||||
|
2
.vscode/tasks.json
vendored
2
.vscode/tasks.json
vendored
@ -46,7 +46,7 @@
|
|||||||
{
|
{
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"label": "Run application",
|
"label": "Run application",
|
||||||
"command": "${workspaceFolder}\\build\\LwLibPROJECT.exe",
|
"command": "${workspaceFolder}\\build\\LwMEM.exe",
|
||||||
"args": [],
|
"args": [],
|
||||||
"problemMatcher": [],
|
"problemMatcher": [],
|
||||||
},
|
},
|
||||||
|
@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.0.0)
|
|||||||
project(LwMEM VERSION 2.0.1)
|
project(LwMEM VERSION 2.0.1)
|
||||||
|
|
||||||
# ------------------------
|
# ------------------------
|
||||||
# Configuration used if this is used as
|
# Configuration used if cmake uses this as
|
||||||
# top-level project CMakeLists.txt file
|
# top-level project CMakeLists.txt file
|
||||||
# This is normally used for development purpose only
|
# This is normally used for development purpose only
|
||||||
if (PROJECT_IS_TOP_LEVEL)
|
if (PROJECT_IS_TOP_LEVEL)
|
||||||
@ -26,8 +26,10 @@ if (PROJECT_IS_TOP_LEVEL)
|
|||||||
CONSOLE
|
CONSOLE
|
||||||
LWMEM_DEV
|
LWMEM_DEV
|
||||||
)
|
)
|
||||||
endif()
|
|
||||||
|
|
||||||
# Add subdir with lwmem and link to the project
|
# Add subdir with lwmem and link to the project
|
||||||
add_subdirectory("lwmem")
|
add_subdirectory("lwmem")
|
||||||
target_link_libraries(${PROJECT_NAME} lwmem)
|
target_link_libraries(${PROJECT_NAME} lwmem)
|
||||||
|
else()
|
||||||
|
message("LWMEM: For library link, use CMakeLists.txt in /lwmem directory")
|
||||||
|
endif()
|
Loading…
x
Reference in New Issue
Block a user