Skip to content

Commit

Permalink
Fix build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaweees committed Jan 16, 2025
1 parent 5bed47a commit ba1d86d
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,13 @@ else()
)
FetchContent_MakeAvailable(SDL2)

# Add SDL2 include directories
target_include_directories(${PROJECT_NAME} INTERFACE
${SDL2_SOURCE_DIR}/include
)

# Link SDL2 libraries
target_link_libraries(${PROJECT_NAME} INTERFACE ${SDL2_LIBRARY})
target_link_libraries(${PROJECT_NAME} INTERFACE SDL2::SDL2)
endif()

# Examples
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions scripts/ci.sh → script/ci.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Central script called by the CI
# Usage:
# Usage:
# ci.sh {run_build|run_tests}

#
Expand Down Expand Up @@ -35,7 +35,7 @@ _install_doctest() {
# Function to build the project
_build_impl() {
cd "$REPO_DIR"
JOBS=4
JOBS=$(nproc)
BUILD_TYPE=Release
cmake -S test -B build -D CMAKE_BUILD_TYPE=${BUILD_TYPE}
cmake --build build --config ${BUILD_TYPE} -j ${JOBS}
Expand All @@ -62,7 +62,7 @@ run_tests() {

# API function to build the project
run_build() {
_install_doctest
# _install_doctest
_build_impl
}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ba1d86d

Please sign in to comment.