clean libs

This commit is contained in:
fxia22 2017-09-14 11:46:29 -07:00
parent 41db9aee35
commit c61eaca7c3
4 changed files with 18625 additions and 25 deletions

View File

@ -36,7 +36,11 @@ find_library(ZeroMQ_LIBRARY
find_package(GLEW REQUIRED)
if (GLEW_FOUND)
include_directories(${GLEW_INCLUDE_DIRS})
#link_libraries(${GLEW_LIBRARIES})
link_libraries(${GLEW_LIBRARIES})
add_definitions(${GLEW_DEFINITIONS})
message(${GLEW_LIBRARIES})
else()
message("GLEW NOT FOUND")
endif()
find_package(ASSIMP REQUIRED)
@ -50,26 +54,31 @@ add_subdirectory (external)
# On Visual 2005 and above, this module can set the debug working directory
if(INCLUDE_DISTRIB)
add_subdirectory(distrib)
endif(INCLUDE_DISTRIB)
find_package(glfw REQUIRED)
message("GLFW" ${GLFW3_INCLUDE_DIR}/GLFW)
message("GLFW lib" ${GLFW3_LIBRARY})
include_directories(
external/glfw-3.1.2/include/GLFW/
${GLEW_INCLUDE_DIRS}
${GLFW3_INCLUDE_DIR}/GLFW
external/lodepng/
${GLUT_INCLUDE_DIRS}
.
${ZeroMQ_INCLUDE_DIR}
)
set(ALL_LIBS
${OPENGL_LIBRARY}
glfw
${freeimage}
GLEW_1130
${GLEW_LIBRARY}
GLEW_1130
${GLUT_LIBRARY}
${ZeroMQ_LIBRARY}
${GLFW3_LIBRARY}
)
add_definitions(
@ -108,9 +117,6 @@ add_executable(depth_render
)
target_link_libraries(depth_render
${ALL_LIBS}
${GLUT_LIBRARY}
${ZeroMQ_LIBRARY}
${GLEW_LIBRARIES}
)
# Xcode and Visual working directories
set_target_properties(depth_render PROPERTIES XCODE_ATTRIBUTE_CONFIGURATION_BUILD_DIR "${CMAKE_CURRENT_SOURCE_DIR}/depth_render/")

View File

@ -1,2 +0,0 @@
all:
@echo "Please READ Tutorial 1 and don't build the tutorials yourself ! Use CMake instead. If you have a problem, read the FAQ"

View File

@ -8,12 +8,6 @@ add_definitions(
### GLFW ###
add_subdirectory (glfw-3.1.2)
include_directories(
glfw-3.1.2/include/GLFW/
glew-1.13.0/include/
)
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(OPENGL_LIBRARY
@ -33,20 +27,15 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
### GLEW ###
set(GLEW_SOURCE
glew-1.13.0/src/glew.c
)
set(GLEW_HEADERS
glew.c
)
add_library( GLEW_1130 STATIC
add_library( GLEW_1130 SHARED
${GLEW_SOURCE}
${GLEW_INCLUDE}
)
target_link_libraries(GLEW_1130
${OPENGL_LIBRARY}
${EXTRA_LIBS}
)

18607
depth/external/glew.c vendored Normal file

File diff suppressed because it is too large Load Diff