idmillington / cyclone-physics

The Physics engine that accompanies the book "Game Physics Engine Design"
MIT License
931 stars 262 forks source link

Enhanced CMake support #42

Open cdglove opened 7 years ago

cdglove commented 7 years ago

Enhanced @Amorph initial CMake support with support for other platforms. Also added x64 support to timing.cpp

I recommend deleting the current build files and using only cmake. I will prbably make that change and submit another PR.

herdinstinct commented 7 years ago

Is there a way I can get your commits without the author merging?

cdglove commented 7 years ago

Yes, just pull from my repository: git pull git@github.com:cdglove/cyclone-physics.git cmake_support or git pull https://github.com/cdglove/cyclone-physics.git cmake_support

haolly commented 2 years ago

I pulled this request locally, but got an error when run CMake: CMake Error at src/demos/CMakeLists.txt:11 (file): file COPY given no DESTINATION @cdglove Do you know what's this error

ButchDean commented 2 years ago

You could try at line 11:

configure_file(${CMAKE_SOURCE_DIR}/contrib/freeglut/bin/x64/freeglut.dll ${CMAKE_CURRENT_BINARY_DIR}/freeglut.dll COPYONLY)

and likewise for line 15.

I haven't tested this but this is how I usually copy files in CMake.