Skip to content

Commit 5663ee7

Browse files
committed
TD5
1 parent 87643b2 commit 5663ee7

File tree

662 files changed

+950374
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

662 files changed

+950374
-0
lines changed

TD5/CMakeLists.txt

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
project(glViewer)
2+
3+
cmake_minimum_required(VERSION 2.8)
4+
5+
if (NOT CMAKE_BUILD_TYPE)
6+
set(CMAKE_BUILD_TYPE "RelWithDebInfo")
7+
endif()
8+
9+
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
10+
11+
find_package(OpenGL REQUIRED)
12+
find_package(Eigen3 "3.0.3" REQUIRED)
13+
add_subdirectory(glfw)
14+
add_subdirectory(SOIL)
15+
16+
include_directories( ${PROJECT_SOURCE_DIR}/glfw/include )
17+
include_directories( ${PROJECT_SOURCE_DIR}/glfw/deps )
18+
include_directories( ${PROJECT_SOURCE_DIR}/SOIL/src )
19+
include_directories( ${PROJECT_SOURCE_DIR}/include )
20+
include_directories( ${PROJECT_SOURCE_DIR}/src )
21+
22+
add_definitions(-DPGHP_DIR="${PROJECT_SOURCE_DIR}")
23+
24+
# the list of source files
25+
set(pghp_SRCS
26+
src/Shader.cpp
27+
src/WireCube.cpp
28+
src/Pointcloud.cpp
29+
src/Mesh.cpp
30+
src/Meshloader.cpp
31+
src/Trackball.cpp
32+
src/Octree.cpp
33+
src/main.cpp
34+
glfw/deps/glad.c
35+
)
36+
37+
add_executable(glViewer ${pghp_SRCS})
38+
39+
target_link_libraries(glViewer glfw SOIL ${GLFW_LIBRARIES} ${OPENGL_LIBRARIES} dl)

TD5/SOIL/.DS_Store

12 KB
Binary file not shown.

TD5/SOIL/CMakeLists.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
cmake_minimum_required (VERSION 2.6)
2+
project (SOIL)
3+
4+
if(ANDROID)
5+
# Android requires GL ES 2.0 package automatically
6+
set(LIBRARIES GLESv2)
7+
else()
8+
find_package (OpenGL REQUIRED)
9+
include_directories (${OPENGL_INCLUDE_DIR})
10+
set(LIBRARIES ${OPENGL_LIBRARIES})
11+
endif()
12+
13+
file (GLOB SOIL_SOURCES src/*.c)
14+
file (GLOB SOIL_HEADERS src/*.h)
15+
16+
add_library (SOIL ${SOIL_SOURCES} ${SOIL_HEADERS})
17+
target_link_libraries (SOIL ${LIBRARIES})

TD5/SOIL/src/.DS_Store

6 KB
Binary file not shown.

0 commit comments

Comments
 (0)