Skip to content

Commit

Permalink
fix cmake linker dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Oct 22, 2023
1 parent 4e23937 commit 17322a8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion examples/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ fips_end_lib()
# optional UI library (using Dear ImGui)
fips_begin_lib(ui)
fips_files(ui.cc ui.h)
fips_deps(imgui)
fips_deps(imgui common)
fips_end_lib()

# a separate library with just keybuf (for the ASCII emulators)
Expand Down
28 changes: 14 additions & 14 deletions examples/sokol/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fips_begin_app(z1013-ui windowed)
if (FIPS_IOS)
fips_files(ios-info.plist)
endif()
fips_deps(roms common ui)
fips_deps(roms ui)
fips_end_app()
target_compile_definitions(z1013-ui PRIVATE CHIPS_USE_UI)

Expand All @@ -28,7 +28,7 @@ fips_begin_app(z9001-ui windowed)
if (FIPS_IOS)
fips_files(ios-info.plist)
endif()
fips_deps(roms common ui)
fips_deps(roms ui)
fips_end_app()
target_compile_definitions(z9001-ui PRIVATE CHIPS_USE_UI)

Expand All @@ -45,7 +45,7 @@ fips_begin_app(atom-ui windowed)
if (FIPS_IOS)
fips_files(ios-info.plist)
endif()
fips_deps(roms common ui)
fips_deps(roms ui)
fips_end_app()
target_compile_definitions(atom-ui PRIVATE CHIPS_USE_UI)

Expand All @@ -62,7 +62,7 @@ fips_begin_app(c64-ui windowed)
if (FIPS_IOS)
fips_files(ios-info.plist)
endif()
fips_deps(roms common ui)
fips_deps(roms ui)
fips_end_app()
target_compile_definitions(c64-ui PRIVATE CHIPS_USE_UI)

Expand All @@ -79,7 +79,7 @@ fips_begin_app(vic20-ui windowed)
if (FIPS_IOS)
fips_files(ios-info.plist)
endif()
fips_deps(roms common ui)
fips_deps(roms ui)
fips_end_app()
target_compile_definitions(vic20-ui PRIVATE CHIPS_USE_UI)

Expand All @@ -96,7 +96,7 @@ fips_begin_app(zx-ui windowed)
if (FIPS_IOS)
fips_files(ios-info.plist)
endif()
fips_deps(roms common ui)
fips_deps(roms ui)
fips_end_app()
target_compile_definitions(zx-ui PRIVATE CHIPS_USE_UI)

Expand All @@ -113,7 +113,7 @@ fips_begin_app(cpc-ui windowed)
if (FIPS_IOS)
fips_files(ios-info.plist)
endif()
fips_deps(roms common ui)
fips_deps(roms ui)
fips_end_app()
target_compile_definitions(cpc-ui PRIVATE CHIPS_USE_UI)

Expand All @@ -131,7 +131,7 @@ fips_begin_app(kc852-ui windowed)
if (FIPS_IOS)
fips_files(ios-info.plist)
endif()
fips_deps(roms common ui)
fips_deps(roms ui)
fips_end_app()
target_compile_definitions(kc852-ui PRIVATE CHIPS_KC85_TYPE_2)
target_compile_definitions(kc852-ui PRIVATE CHIPS_USE_UI)
Expand All @@ -149,7 +149,7 @@ fips_begin_app(kc853-ui windowed)
if (FIPS_IOS)
fips_files(ios-info.plist)
endif()
fips_deps(roms common ui)
fips_deps(roms ui)
fips_end_app()
target_compile_definitions(kc853-ui PRIVATE CHIPS_KC85_TYPE_3)
target_compile_definitions(kc853-ui PRIVATE CHIPS_USE_UI)
Expand All @@ -167,7 +167,7 @@ fips_begin_app(kc854-ui windowed)
if (FIPS_IOS)
fips_files(ios-info.plist)
endif()
fips_deps(roms common ui)
fips_deps(roms ui)
fips_end_app()
target_compile_definitions(kc854-ui PRIVATE CHIPS_KC85_TYPE_4)
target_compile_definitions(kc854-ui PRIVATE CHIPS_USE_UI)
Expand All @@ -185,7 +185,7 @@ fips_begin_app(bombjack-ui windowed)
if (FIPS_IOS)
fips_files(ios-info.plist)
endif()
fips_deps(roms common ui)
fips_deps(roms ui)
fips_end_app()
target_compile_definitions(bombjack-ui PRIVATE CHIPS_USE_UI)

Expand All @@ -202,7 +202,7 @@ fips_begin_app(pacman-ui windowed)
if (FIPS_IOS)
fips_files(ios-info.plist)
endif()
fips_deps(roms common ui)
fips_deps(roms ui)
fips_end_app()
target_compile_definitions(pacman-ui PRIVATE CHIPS_USE_UI)

Expand All @@ -219,7 +219,7 @@ fips_begin_app(pengo-ui windowed)
if (FIPS_IOS)
fips_files(ios-info.plist)
endif()
fips_deps(roms common ui)
fips_deps(roms ui)
fips_end_app()
target_compile_definitions(pengo-ui PRIVATE CHIPS_USE_UI)

Expand All @@ -229,5 +229,5 @@ fips_begin_app(lc80 windowed)
if (FIPS_IOS)
fips_files(ios-info.plist)
endif()
fips_deps(roms common ui)
fips_deps(roms ui)
fips_end_app()

0 comments on commit 17322a8

Please sign in to comment.