Reformat and add a gitignore

This commit is contained in:
Patricia Aas 2021-06-22 12:58:18 +02:00 committed by Patricia Aas
parent 5f0c03c1fa
commit f51b7d65e0
4 changed files with 8 additions and 7 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
vcpkg/*

View File

@ -33,7 +33,7 @@ private:
void renderScore(int score);
static Rect windowDimensions() ;
static Rect windowDimensions();
static sf::Texture loadTexture(std::string_view path);
static sf::Font loadFont(std::string_view path);

View File

@ -3,12 +3,12 @@ add_executable(pacman ${sources})
target_link_libraries(pacman PUBLIC libpacman)
set_target_properties(pacman
PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
)
PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
)
add_custom_command(TARGET pacman POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
COMMAND ${CMAKE_COMMAND} -E copy
${PROJECT_SOURCE_DIR}/assets/maze.png
${PROJECT_SOURCE_DIR}/assets/sprites32.png
${PROJECT_SOURCE_DIR}/assets/joystix/joystix.ttf

View File

@ -1,5 +1,5 @@
#include <gtest/gtest.h>
#include "PacMan.hpp"
#include <gtest/gtest.h>
TEST(PacManTest, InitialPosition) {
Board board;
@ -8,7 +8,7 @@ TEST(PacManTest, InitialPosition) {
EXPECT_EQ(pacMan.position().y, 23);
}
int main(int argc, char* argv[]) {
int main(int argc, char * argv[]) {
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}