Skip to content

Fixing for Windows and Linux#50

Open
victordmontero wants to merge 1 commit intoaneury1:masterfrom
victordmontero:dev/victor-test2
Open

Fixing for Windows and Linux#50
victordmontero wants to merge 1 commit intoaneury1:masterfrom
victordmontero:dev/victor-test2

Conversation

@victordmontero
Copy link
Collaborator

No description provided.

@victordmontero victordmontero added the enhancement New feature or request label Jan 19, 2026
@victordmontero victordmontero marked this pull request as draft January 19, 2026 23:55
@victordmontero victordmontero marked this pull request as ready for review January 20, 2026 23:23
Comment on lines -20 to -24
set(SDL2IMAGE_INSTALL OFF)
set(BUILD_SHARED_LIBS FALSE)
set(SDL2_DISABLE_INSTALL OFF)
set(SDL2TTF_VENDORED TRUE)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decided to move to fetchSDL cmake module

Comment on lines -161 to -233

#add_executable(${PROJECT_NAME}-sample
# sample/ignored_main.cpp
#)
add_executable(${PROJECT_NAME}-pong-sample
sample/pong/SimplePong.cpp
)

add_executable(${PROJECT_NAME}-SpaceInvader-sample
sample/SpaceInvader/SpaceInvader.cpp
)

add_executable(${PROJECT_NAME}-Tetris-sample
sample/tetris/Tetris.cpp
)

add_executable(${PROJECT_NAME}-MusicPlayer-sample
sample/MusicPlayer/MusicPlayer.cpp
)
add_executable(BattleSpawn
sample/BattleSpawn/BattleSpawn.cpp
)
add_executable(PacmanClone
sample/Pacman/Pacman.cpp
)

add_executable(BattleCityRecreation
sample/BattleCityRecreation/BattleCityRecreation.cpp
)

# to build sample needs
# Zip support, ubuntu sudo apt-get install libzip-dev
#target_link_libraries(${PROJECT_NAME}-sample PRIVATE
# ${PROJECT_NAME}
# ${DOENGINE_LIBRARIES}
#)

target_link_libraries(${PROJECT_NAME}-pong-sample PRIVATE
${PROJECT_NAME}
${DOENGINE_LIBRARIES}
)

target_link_libraries(${PROJECT_NAME}-SpaceInvader-sample PRIVATE
${PROJECT_NAME}
${DOENGINE_LIBRARIES}
)

target_link_libraries(${PROJECT_NAME}-Tetris-sample PRIVATE
${PROJECT_NAME}
${DOENGINE_LIBRARIES}
)

target_link_libraries(${PROJECT_NAME}-MusicPlayer-sample PRIVATE
${PROJECT_NAME}
${DOENGINE_LIBRARIES}
)

target_link_libraries(BattleSpawn PRIVATE
${PROJECT_NAME}
${DOENGINE_LIBRARIES}
)

target_link_libraries(PacmanClone PRIVATE
${PROJECT_NAME}
${DOENGINE_LIBRARIES}
)


target_link_libraries(BattleCityRecreation PRIVATE
${PROJECT_NAME}
${DOENGINE_LIBRARIES}
)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to sample/CMakeLists.txt

Comment on lines -11 to +13
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_ttf.h>
#include <SDL2/SDL_mixer.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
#include <SDL_mixer.h>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verify if this causes you problems @aneury1

@victordmontero
Copy link
Collaborator Author

You might take a look @aneury1 @ganeury

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants