chipmunk fixes for Linux

This commit is contained in:
Ricardo Quesada 2014-03-25 16:46:10 -07:00
parent 96e8c4777d
commit c82933e3c4
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,5 @@
set(BUILD_STATIC 1)
file(GLOB chipmunk_source_files "*.c" "constraints/*.c")
file(GLOB chipmunk_public_header "${chipmunk_SOURCE_DIR}/include/chipmunk/*.h")
file(GLOB chipmunk_constraint_header "${chipmunk_SOURCE_DIR}/include/chipmunk/constraints/*.h")
@ -46,3 +48,10 @@ if(BUILD_SHARED OR INSTALL_STATIC)
install(FILES ${chipmunk_public_header} DESTINATION include/chipmunk)
install(FILES ${chipmunk_constraint_header} DESTINATION include/chipmunk/constraints)
endif(BUILD_SHARED OR INSTALL_STATIC)
set_target_properties(chipmunk_static
PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
)

View File

@ -21,6 +21,7 @@
#include <stdio.h>
#include <string.h>
#include <alloca.h>
#include "chipmunk_private.h"