dm 7 years ago
parent
commit
799fad6592
1 changed files with 10 additions and 2 deletions
  1. 10 2
      examples/DemoBox2D/proj.cmake/CMakeLists.txt

+ 10 - 2
examples/DemoBox2D/proj.cmake/CMakeLists.txt

@@ -6,13 +6,21 @@ add_definitions(${OXYGINE_DEFINITIONS})
 include_directories(${OXYGINE_INCLUDE_DIRS})
 link_directories(${OXYGINE_LIBRARY_DIRS})
 
+
+file(GLOB_RECURSE BOX2DSRC
+		../box2d/*.cpp
+		../box2d/*.h)
+
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OXYGINE_CXX_FLAGS}")
 
-add_executable(DemoBox2D ../src/Box2DDebugDraw.cpp ../src/example.cpp ../src/main.cpp  ../src/Box2DDebugDraw.h ../src/example.h )
-target_link_libraries(DemoBox2D ${OXYGINE_CORE_LIBS})
+add_executable(DemoBox2D ${BOX2DSRC} ../src/Box2DDebugDraw.cpp ../src/main.cpp ../src/example.cpp  ../src/Box2DDebugDraw.h ../src/example.h )
+source_group(box2d FILES ${BOX2DSRC})
+include_directories(../box2d)
 
 
 
+target_link_libraries(DemoBox2D ${OXYGINE_CORE_LIBS})
+
 if (WIN32) #disable console mode for VC++
 	set_target_properties(DemoBox2D PROPERTIES WIN32_EXECUTABLE TRUE)
 endif(WIN32)