-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge, fix conflicts, address projector todos
Signed-off-by: Ian Chen <[email protected]>
- Loading branch information
Showing
64 changed files
with
3,347 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR) | ||
project(gz-rendering-projector) | ||
find_package(gz-rendering8 REQUIRED) | ||
|
||
include_directories(SYSTEM | ||
${PROJECT_BINARY_DIR} | ||
) | ||
|
||
find_package(GLUT REQUIRED) | ||
include_directories(SYSTEM ${GLUT_INCLUDE_DIRS}) | ||
link_directories(${GLUT_LIBRARY_DIRS}) | ||
|
||
find_package(OpenGL REQUIRED) | ||
include_directories(SYSTEM ${OpenGL_INCLUDE_DIRS}) | ||
link_directories(${OpenGL_LIBRARY_DIRS}) | ||
|
||
if (NOT APPLE) | ||
find_package(GLEW REQUIRED) | ||
include_directories(SYSTEM ${GLEW_INCLUDE_DIRS}) | ||
link_directories(${GLEW_LIBRARY_DIRS}) | ||
endif() | ||
|
||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations") | ||
|
||
configure_file (example_config.hh.in ${PROJECT_BINARY_DIR}/example_config.hh) | ||
|
||
add_executable(projector Main.cc GlutWindow.cc) | ||
|
||
target_link_libraries(projector | ||
${GLUT_LIBRARIES} | ||
${OPENGL_LIBRARIES} | ||
${GLEW_LIBRARIES} | ||
gz-rendering8::gz-rendering8 | ||
gz-rendering8::core | ||
) | ||
|
||
add_custom_command(TARGET projector POST_BUILD | ||
COMMAND ${CMAKE_COMMAND} -E copy_directory | ||
${CMAKE_SOURCE_DIR}/media | ||
$<TARGET_FILE_DIR:projector>/media) |
Oops, something went wrong.