Skip to content

Commit

Permalink
Add sfml-graphics to CHIP8 lib
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskow committed Jul 1, 2024
1 parent cace71e commit 1e79a8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project(CHIP-8 LANGUAGES CXX)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

Include(FetchContent)
include(FetchContent)

# FetchContent_Declare(
# Catch2
Expand Down
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
add_executable(main main.cpp)
add_library(chip8 SHARED chip8.cpp display.cpp memory.cpp)
target_link_libraries(main PRIVATE sfml-graphics chip8)
target_link_libraries(chip8 PUBLIC sfml-graphics)
target_link_libraries(main PUBLIC chip8)

0 comments on commit 1e79a8f

Please sign in to comment.