diff --git a/test/system_test/CMakeLists.txt b/test/system_test/CMakeLists.txt index 471bc86..68b5296 100644 --- a/test/system_test/CMakeLists.txt +++ b/test/system_test/CMakeLists.txt @@ -11,5 +11,5 @@ project( ) add_subdirectory(demo2d) -# add_subdirectory(demo3d) +add_subdirectory(demo3d) # add_subdirectory(demo_old) diff --git a/test/system_test/demo3d/CMakeLists.txt b/test/system_test/demo3d/CMakeLists.txt index 9dee88b..2fe688f 100644 --- a/test/system_test/demo3d/CMakeLists.txt +++ b/test/system_test/demo3d/CMakeLists.txt @@ -20,28 +20,31 @@ add_executable(demo3d dtkScene.cpp ) -target_include_directories(demo3d PRIVATE - ./ - ../ - ../engine/dtk - ../engine/math - ../engine/physics +target_include_directories(${PROJECT_NAME} PRIVATE + include ) -target_link_libraries(demo3d PRIVATE - dtk - Boost::headers - Boost::dynamic_linking - CGAL +target_link_libraries(${PROJECT_NAME} PRIVATE + Eigen GLUT::GLUT - glfw glm - Eigen OpenGL::GL - glut - GLU ) +# target_link_libraries(demo3d PRIVATE +# dtk +# Boost::headers +# Boost::dynamic_linking +# CGAL +# GLUT::GLUT +# glfw +# glm +# Eigen +# OpenGL::GL +# glut +# GLU +# ) + target_compile_definitions(demo3d PRIVATE # $ ) diff --git a/test/system_test/demo3d/main.cpp b/test/system_test/demo3d/main.cpp index 77846b3..c9301e4 100644 --- a/test/system_test/demo3d/main.cpp +++ b/test/system_test/demo3d/main.cpp @@ -196,7 +196,7 @@ void keyboard(unsigned char key, int x, int y) { break; } case 27: - glutLeaveMainLoop(); + // glutLeaveMainLoop(); break; default: break; @@ -215,7 +215,7 @@ void gl_vis(int argc, char* argv[]) glutDisplayFunc(&display); glutReshapeFunc(&reshape); glutIdleFunc(&idle); - glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_CONTINUE_EXECUTION); + // glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_CONTINUE_EXECUTION); glutMainLoop(); }