Skip to content

Commit

Permalink
Update CMakeLists.txt to latest vcpkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
rossning92 committed Nov 21, 2021
1 parent 7ccd5f4 commit 911ccf7
Show file tree
Hide file tree
Showing 5 changed files with 1,589 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.7)
cmake_minimum_required(VERSION 2.8)

project(Blackhole)

Expand All @@ -18,7 +18,7 @@ add_executable(${CMAKE_PROJECT_NAME} ${SRC_FILES})
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE imgui::imgui)
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE glfw)
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE GLEW::GLEW)
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE glm)
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE glm::glm)

find_path(STB_INCLUDE_DIRS "stb.h")
target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE ${STB_INCLUDE_DIRS})
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ _(WIP: refactoring, cleaning up and documenting the code)_
- glew
- glfw3
- glm
- imgui[opengl3-gl3w-binding]
- imgui
- stb

### For windows setup only
Expand All @@ -23,7 +23,7 @@ _(WIP: refactoring, cleaning up and documenting the code)_
- Build vcpkg: `bootstrap-vcpkg && vcpkg integrate install`
- Install required C++ libs from vcpkg (I've only tested x64 build):
```
vcpkg install glew:x64-windows glfw3:x64-windows glm:x64-windows imgui[opengl3-gl3w-binding]:x64-windows stb:x64-windows
vcpkg install glew:x64-windows glfw3:x64-windows glm:x64-windows imgui:x64-windows stb:x64-windows
```

## Build the code
Expand Down
Loading

0 comments on commit 911ccf7

Please sign in to comment.