Skip to content

Commit

Permalink
Fix cupcake.json
Browse files Browse the repository at this point in the history
  • Loading branch information
thejohnfreeman committed Nov 6, 2024
1 parent bc071a8 commit 6db6fc0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 29 deletions.
4 changes: 2 additions & 2 deletions 10-special/examples/diez/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ cupcake_project()
cupcake_find_packages(main)
cupcake_link_libraries(${PROJECT_NAME}.imports.main INTERFACE main)

cupcake_add_libraries(main)
cupcake_add_executables(main)
cupcake_add_libraries()
cupcake_add_executables()

cupcake_enable_testing()

Expand Down
47 changes: 20 additions & 27 deletions 10-special/examples/diez/cupcake.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,24 @@
{
"groups": {
"main": {
"imports": [
{
"name": "ten",
"file": "ten",
"targets": ["ten::library"]
}
],
"libraries": [
{ "name": "diez", "links": [{ "target": "${PROJECT_NAME}.imports.main" }] }
],
"executables": [
{ "name": "diez", "links": [{ "target": "diez.library" }] }
]
"imports": [
{
"name": "ten",
"file": "ten",
"targets": ["ten::library"]
},
"test": {
"imports": [
{
"name": "doctest",
"file": "doctest",
"targets": ["doctest::doctest"]
}
],
"tests": [
{ "name": "diez", "links": [{ "target": "diez.imports.test" }, { "target": "diez.library" }] }
]
{
"name": "doctest",
"file": "doctest",
"targets": ["doctest::doctest"],
"groups": ["test"]
}
}
],
"libraries": [
{ "name": "diez", "links": [{ "target": "${PROJECT_NAME}.imports.main" }] }
],
"executables": [
{ "name": "diez", "links": [{ "target": "diez.library" }] }
],
"tests": [
{ "name": "diez", "links": [{ "target": "diez.imports.test" }, { "target": "diez.library" }] }
]
}

0 comments on commit 6db6fc0

Please sign in to comment.