fix minor issue with cmake build system

This commit is contained in:
erwin.coumans 2010-02-09 21:12:36 +00:00
parent f567130d78
commit 14f65a5cac
2 changed files with 23 additions and 25 deletions

View File

@ -14,12 +14,10 @@ SET(SharedDemoSubdirs
if (CMAKE_SIZEOF_VOID_P MATCHES "8") if (CMAKE_SIZEOF_VOID_P MATCHES "8")
SUBDIRS( OpenGL SUBDIRS( ${SharedDemoSubdirs}
${SharedDemoSubdirs}
) )
else (CMAKE_SIZEOF_VOID_P MATCHES "8") else (CMAKE_SIZEOF_VOID_P MATCHES "8")
SUBDIRS( OpenGL SUBDIRS( ${SharedDemoSubdirs}
${SharedDemoSubdirs}
MultiThreadedDemo MultiThreadedDemo
MiniCL_VectorAdd MiniCL_VectorAdd
) )

View File

@ -38,23 +38,23 @@ IF (USE_GLUT)
SerializeDemo.h SerializeDemo.h
) )
ENDIF() ENDIF()
IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
IF (WIN32) IF (WIN32)
IF (CMAKE_CL_64) IF (CMAKE_CL_64)
ADD_CUSTOM_COMMAND( ADD_CUSTOM_COMMAND(
TARGET AppSerializeDemo TARGET AppSerializeDemo
POST_BUILD POST_BUILD
COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/glut64.dll ${CMAKE_CURRENT_BINARY_DIR} COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/glut64.dll ${CMAKE_CURRENT_BINARY_DIR}
) )
ELSE(CMAKE_CL_64) ELSE(CMAKE_CL_64)
ADD_CUSTOM_COMMAND( ADD_CUSTOM_COMMAND(
TARGET AppSerializeDemo TARGET AppSerializeDemo
POST_BUILD POST_BUILD
COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/GLUT32.DLL ${CMAKE_CURRENT_BINARY_DIR} COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/GLUT32.DLL ${CMAKE_CURRENT_BINARY_DIR}
) )
ENDIF(CMAKE_CL_64) ENDIF(CMAKE_CL_64)
ENDIF(WIN32) ENDIF(WIN32)
ENDIF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES)
ELSE (USE_GLUT) ELSE (USE_GLUT)