fix CMakeLists.txt on Mac/Linux when using BUILD_SHARED_LIBS

This commit is contained in:
Erwin Coumans
2014-09-17 10:07:21 -07:00
parent 4352eb1ea4
commit 76f4bd9a9d
2 changed files with 4 additions and 3 deletions

View File

@@ -24,7 +24,6 @@ elseif (APPLE)
endif ()
if (BUILD_SHARED_LIBS)
target_link_libraries(Bullet3AppSupport OpenGLWindow Bullet3Common)
target_link_libraries(Bullet3AppSupport gwen OpenGLWindow ${OPENGL_gl_LIBRARY} BulletCollision LinearMath Bullet3Common)
endif()
target_link_libraries(Bullet3AppSupport ${OPENGL_gl_LIBRARY})

View File

@@ -10,4 +10,6 @@ FILE(GLOB gwen_SRCS "*.cpp" "Controls/*.cpp" "Controls/Dialog/*.cpp" "Controls/D
FILE(GLOB gwen_HDRS "*.h" "Controls/*.h" "Controls/Dialog/*.h" "Controls/Dialogs/*.h" "Controls/Layout/*.h" "Controls/Property/*.h" "Input/*.h" "Platforms/*.h" "Renderers/*.h" "Skins/*.h")
ADD_LIBRARY(gwen ${gwen_SRCS} ${gwen_HDRS})
if (BUILD_SHARED_LIBS)
target_link_libraries(gwen ${OPENGL_gl_LIBRARY})
endif()