Changeset 3484

Show
Ignore:
Timestamp:
03/09/10 11:03:14 (5 months ago)
Author:
Azaezel
Message:

Partially functional cmake configuration for bullet. at time of writing, It will find the include, and root directories for the various libraries, however, it fails on properly generating a Cmakelists.txt in zbullet

Location:
plugins/branches/0185_GEN_PHYSICS_REFACTOR_2
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • plugins/branches/0185_GEN_PHYSICS_REFACTOR_2/CMakeLists.txt

    r3415 r3484  
    155155endif(OPENDE_FOUND) 
    156156 
     157#-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~- 
     158# ZBULLET but only if BULLET is found 
     159Find_Package(BULLET) 
     160 
     161if (BULLET_FOUND) 
     162    message("-- ZBULLET (${BULLET_FOUND}, ${BULLET_LIBRARIES})") 
     163    add_subdirectory(ZBULLET) 
     164else(BULLET_FOUND) 
     165    message("-- ZBULLET will NOT be compiled.  BULLET was not found.") 
     166endif(BULLET_FOUND) 
     167 
     168 
     169#-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~- 
    157170message("-- ZMicroPather") 
    158171add_subdirectory(ZMicroPather) 
  • plugins/branches/0185_GEN_PHYSICS_REFACTOR_2/ZBullet/CMakeLists.template

    r3463 r3484  
    1616 
    1717#-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~- 
    18 # Include ZBullet source file 
     18# Include ZODE source file 
    1919 
    2020<%GroupList%> 
    2121         
    22 set ( ZBullet_SRC 
     22set ( ZBULLET_SRC 
    2323<%SourceList%> 
    2424    ) 
     
    3030link_directories ( ${DEV_LIB} ${Boost_LIBRARY_DIRS} ) 
    3131 
    32 add_library ( ZBullet ${LIB_TYPE} ${ZBullet_SRC} ) 
     32add_library ( ZBULLET ${LIB_TYPE} ${ZBULLET_SRC} ) 
    3333 
    34 add_dependencies( ZBullet ZenCore ZenEngine ) 
     34add_dependencies( ZBULLET ZenCore ZenEngine ) 
    3535 
    36 target_link_libraries( ZBullet ZenCore ZenEngine ${ZBULLET_LIBRARIES} ) 
     36target_link_libraries( ZBULLET ZenCore ZenEngine ${BULLET_LIBRARIES} ) 
    3737 
    38 set_target_properties ( ZBullet  
     38set_target_properties ( ZBULLET 
    3939                                                PROPERTIES 
    4040                                                DEBUG_POSTFIX "_d" 
     
    4343if (MSVC_IDE) 
    4444    # hack to get around the "Debug" and "Release" directories cmake tries to add on Windows 
    45     set_target_properties ( ZBullet PROPERTIES PREFIX "../../bin/" ) 
    46         set_target_properties ( ZBullet PROPERTIES IMPORT_PREFIX "../../lib/" ) 
     45    set_target_properties ( ZODE PROPERTIES PREFIX "../../bin/" ) 
     46        set_target_properties ( ZODE PROPERTIES IMPORT_PREFIX "../../lib/" ) 
    4747endif(MSVC_IDE) 
    4848