Skip to content
Snippets Groups Projects
Commit ad2cb61b authored by Marek Trtik's avatar Marek Trtik
Browse files

Removed dependency on lodepng and added stb

parent 001f7d2a
No related branches found
No related tags found
No related merge requests found
...@@ -39,8 +39,8 @@ find_package(OpenGL REQUIRED) ...@@ -39,8 +39,8 @@ find_package(OpenGL REQUIRED)
find_package(glad CONFIG REQUIRED) find_package(glad CONFIG REQUIRED)
find_package(Boost REQUIRED) find_package(Boost REQUIRED)
find_package(GTest CONFIG REQUIRED) find_package(GTest CONFIG REQUIRED)
find_package(Stb REQUIRED)
find_package(Threads) find_package(Threads)
find_package(lodepng CONFIG REQUIRED)
if(AGE_MATH_LIBRARY MATCHES "glm") if(AGE_MATH_LIBRARY MATCHES "glm")
find_package(glm CONFIG REQUIRED) find_package(glm CONFIG REQUIRED)
...@@ -59,7 +59,6 @@ set(AGE_3RD_PARTY_LIBRARIES_TO_LINK_WITH ...@@ -59,7 +59,6 @@ set(AGE_3RD_PARTY_LIBRARIES_TO_LINK_WITH
$<IF:$<TARGET_EXISTS:SDL2::SDL2>,SDL2::SDL2,SDL2::SDL2-static> $<IF:$<TARGET_EXISTS:SDL2::SDL2>,SDL2::SDL2,SDL2::SDL2-static>
${OPENGL_LIBRARIES} ${OPENGL_LIBRARIES}
glad::glad glad::glad
lodepng
${AGE_MATH_LIBRARY_TO_LINK_WITH} ${AGE_MATH_LIBRARY_TO_LINK_WITH}
${Boost_LIBRARIES} ${Boost_LIBRARIES}
) )
...@@ -78,7 +77,7 @@ message("Sources directory = ${PROJECT_SOURCE_DIR}/src") ...@@ -78,7 +77,7 @@ message("Sources directory = ${PROJECT_SOURCE_DIR}/src")
message("Install directory = ${CMAKE_INSTALL_PREFIX}") message("Install directory = ${CMAKE_INSTALL_PREFIX}")
message("Using math library = ${AGE_MATH_LIBRARY}") message("Using math library = ${AGE_MATH_LIBRARY}")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/code") set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/src")
add_subdirectory(./src) add_subdirectory(./src)
......
...@@ -75,7 +75,7 @@ start with the **age** project: ...@@ -75,7 +75,7 @@ start with the **age** project:
sudo apt install pkg-config autoconf-archive sudo apt install pkg-config autoconf-archive
``` ```
- Once you have the package manager installed, install into it required packages:\ - Once you have the package manager installed, install into it required packages:\
`vcpkg install sdl2 glad glm boost eigen3 lodepng gtest --clean-after-build`\ `vcpkg install sdl2 glad glm boost eigen3 stb gtest --clean-after-build`\
On Windows append the option `--triplet=x64-windows` to the command and `--triplet=x64-linux` on Ubuntu. On Windows append the option `--triplet=x64-windows` to the command and `--triplet=x64-linux` on Ubuntu.
- **Microsoft Visual Studio Code** (VS code) source-code editor: https://code.visualstudio.com/ - **Microsoft Visual Studio Code** (VS code) source-code editor: https://code.visualstudio.com/
- Once you have the editor installed, install into it these extensions: - Once you have the editor installed, install into it these extensions:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment