63 lines
No EOL
1.5 KiB
CMake
63 lines
No EOL
1.5 KiB
CMake
# Declare/fetch packages
|
|
|
|
include(FetchContent)
|
|
FetchContent_Declare(
|
|
glew
|
|
GIT_REPOSITORY https://github.com/Perlmint/glew-cmake
|
|
GIT_TAG glew-cmake-2.2.0
|
|
)
|
|
|
|
FetchContent_Declare(
|
|
glm
|
|
GIT_REPOSITORY https://github.com/g-truc/glm
|
|
GIT_TAG 1.0.1
|
|
)
|
|
|
|
FetchContent_Declare(
|
|
ReactPhysics3D
|
|
GIT_REPOSITORY https://github.com/DanielChappuis/reactphysics3d
|
|
GIT_TAG v0.10.2
|
|
)
|
|
|
|
FetchContent_Declare(
|
|
pugixml
|
|
GIT_REPOSITORY https://github.com/zeux/pugixml
|
|
GIT_TAG v1.15
|
|
)
|
|
|
|
FetchContent_Declare(
|
|
freetype
|
|
GIT_REPOSITORY https://gitlab.freedesktop.org/freetype/freetype
|
|
GIT_TAG VER-2-13-3
|
|
)
|
|
|
|
FetchContent_Declare(
|
|
stb
|
|
GIT_REPOSITORY https://github.com/natanaeljr/stb-cmake-package
|
|
GIT_TAG 1a4828e0cf649fb873c7b5f45b5d22d411a44ae4 # v0.9.0
|
|
)
|
|
|
|
FetchContent_Declare(
|
|
luajit
|
|
GIT_REPOSITORY https://github.com/zhaozg/luajit-cmake
|
|
GIT_TAG 300c0b3f472be2be158f5b2e6385579ba5c6c0f9
|
|
)
|
|
|
|
FetchContent_MakeAvailable(glew glm ReactPhysics3D pugixml freetype stb luajit)
|
|
|
|
# Find/include packages
|
|
|
|
find_package(OpenGL REQUIRED COMPONENTS OpenGL)
|
|
# find_package(glew REQUIRED)
|
|
include_directories(${GLEW_INCLUDE_DIRS})
|
|
# find_package(glm CONFIG REQUIRED)
|
|
# find_package(ReactPhysics3D REQUIRED)
|
|
# find_package(pugixml 1.15 REQUIRED)
|
|
# find_package(Freetype)
|
|
# find_package(Stb REQUIRED)
|
|
include_directories(${Stb_INCLUDE_DIR})
|
|
|
|
# PkgConfig packages
|
|
# find_package(PkgConfig REQUIRED)
|
|
# pkg_check_modules(LUAJIT REQUIRED luajit)
|
|
link_directories(${LUAJIT_LIBRARY_DIRS}) |