Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Team 3 #17

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
cmake_minimum_required(VERSION 3.23)
project(cse_491_fall_2023)

# Set C++ standard
set(CMAKE_CXX_STANDARD 20)
set(APPLICATION_LIBRARY source)

# Find SFML
find_package(SFML 2.5 COMPONENTS graphics window system REQUIRED)

# Include the necessary subdirectories
foreach(lib ${APPLICATION_LIBRARY})
add_subdirectory(${lib})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/${lib})
endforeach()

# Main executable
set(SOURCE_FILES main.cpp)

# Define the build target for the executable
add_executable(${PROJECT_NAME} WIN32 MACOSX_BUNDLE ${SOURCE_FILES})

# Link your main executable with SFML libraries and other libraries
# Link your main executable with SFML libraries
target_include_directories(${PROJECT_NAME} PRIVATE /opt/homebrew/opt/sfml/include)
target_link_libraries(${PROJECT_NAME} sfml-graphics sfml-window sfml-system)
# moving assets to build
file(COPY ./assets DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
Empty file.
Empty file.
Empty file.
Empty file.
Loading