File tree Expand file tree Collapse file tree 6 files changed +17
-7
lines changed
Expand file tree Collapse file tree 6 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,7 @@ elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC")
2323endif ()
2424
2525find_package (SDL2 REQUIRED)
26- find_package (SDL2_image REQUIRED)
27- find_package (SDL2_ttf REQUIRED)
28-
2926include_directories (${SDL2_INCLUDE_DIR} )
30- include_directories (${SDL2_IMAGE_INCLUDE_DIR} )
31- include_directories (${SDL2_TTF_INCLUDE_DIR} )
3227
3328add_subdirectory (Lesson0)
3429add_subdirectory (Lesson1)
Original file line number Diff line number Diff line change 11project (Lesson3)
2+
3+ find_package (SDL2_image REQUIRED)
4+ include_directories (${SDL2_IMAGE_INCLUDE_DIR} )
5+
26add_executable (Lesson3 src/main.cpp)
37target_link_libraries (Lesson3 ${SDL2_LIBRARY} ${SDL2_IMAGE_LIBRARY} )
48install (TARGETS Lesson3 RUNTIME DESTINATION ${BIN_DIR} )
Original file line number Diff line number Diff line change 11project (Lesson4)
2+
3+ find_package (SDL2_image REQUIRED)
4+ include_directories (${SDL2_IMAGE_INCLUDE_DIR} )
5+
26add_executable (Lesson4 src/main.cpp)
37target_link_libraries (Lesson4 ${SDL2_LIBRARY} ${SDL2_IMAGE_LIBRARY} )
48install (TARGETS Lesson4 RUNTIME DESTINATION ${BIN_DIR} )
Original file line number Diff line number Diff line change 11project (Lesson5)
2+
3+ find_package (SDL2_image REQUIRED)
4+ include_directories (${SDL2_IMAGE_INCLUDE_DIR} )
5+
26add_executable (Lesson5 src/main.cpp)
37target_link_libraries (Lesson5 ${SDL2_LIBRARY} ${SDL2_IMAGE_LIBRARY} )
48install (TARGETS Lesson5 RUNTIME DESTINATION ${BIN_DIR} )
Original file line number Diff line number Diff line change 11project (Lesson6)
2+
3+ find_package (SDL2_ttf REQUIRED)
4+ include_directories (${SDL2_TTF_INCLUDE_DIR} )
5+
26add_executable (Lesson6 src/main.cpp)
3- target_link_libraries (Lesson6 ${SDL2_LIBRARY} ${SDL2_IMAGE_LIBRARY} ${ SDL2_TTF_LIBRARY} )
7+ target_link_libraries (Lesson6 ${SDL2_LIBRARY} ${SDL2_TTF_LIBRARY} )
48install (TARGETS Lesson6 RUNTIME DESTINATION ${BIN_DIR} )
59
Original file line number Diff line number Diff line change 11#include < string>
22#include < iostream>
33#include < SDL.h>
4- #include < SDL_image.h>
54#include < SDL_ttf.h>
65#include " asset.h"
76
You can’t perform that action at this time.
0 commit comments