-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
79 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "Jumpstart CMake exercise", | ||
"image": "danger89/cmake:5.0", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"llvm-vs-code-extensions.vscode-clangd", | ||
"matepek.vscode-catch2-test-adapter", | ||
"ms-vscode.cmake-tools", | ||
"twxs.cmake" | ||
], | ||
"settings": { | ||
"cmake.sourceDirectory": "${workspaceFolder}/topics/build_systems/code" | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "Jumpstart docmake", | ||
"image": "ghcr.io/langchr86/docmake@sha256:32d37fb9a637f0bd2b7860305a31e29ceb665f5f8f884b463a1da4d74cbf308d", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"mathematic.vscode-pdf", | ||
"llvm-vs-code-extensions.vscode-clangd", | ||
"matepek.vscode-catch2-test-adapter", | ||
"ms-vscode.cmake-tools", | ||
"twxs.cmake" | ||
], | ||
"postStartCommand": "Xvfb :99 &" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<#include meta/slides.md> | ||
|
||
--- | ||
title: "Jumpstart - Codespaces" | ||
--- | ||
|
||
|
||
Entwicklungsumgebungen | ||
---------------------- | ||
|
||
Bla |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
|
||
# project settings | ||
project(bit_fields) | ||
set(BF_TARGET bit-fields) | ||
|
||
# search all relevant files | ||
file(GLOB_RECURSE BF_SRC_MAIN "src/main.c*") | ||
file(GLOB_RECURSE BF_SRC_ALL "src/*.c*") | ||
file(GLOB_RECURSE BF_TEST_ALL "test/*.c*") | ||
list(REMOVE_ITEM BF_SRC_ALL ${BF_SRC_MAIN}) | ||
|
||
# internal library target | ||
set(BF_TARGET_LIB ${BF_TARGET}-lib) | ||
add_library(${BF_TARGET_LIB} STATIC ${BF_SRC_ALL}) | ||
target_include_directories(${BF_TARGET_LIB} PUBLIC "libs" "src") | ||
|
||
# main app target | ||
set(BF_TARGET_APP ${BF_TARGET}-app) | ||
add_executable(${BF_TARGET_APP} ${BF_SRC_MAIN}) | ||
target_link_libraries(${BF_TARGET_APP} PRIVATE ${BF_TARGET_LIB}) | ||
|
||
# unit test target | ||
set(BF_TARGET_TEST ${BF_TARGET}-test) | ||
enable_testing() | ||
add_executable(${BF_TARGET_TEST} ${BF_TEST_ALL}) | ||
add_test(unittest ${BF_TARGET_TEST}) | ||
target_link_libraries(${BF_TARGET_TEST} PRIVATE ${BF_TARGET_LIB}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters