You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

36 lines
1020 B

cmake_minimum_required(VERSION 3.8)
################################################################################
add_executable(Box2D_comparison
src/main.cpp
)
# Download Box2D
function(rigid_ipc_download_box2d)
rigid_ipc_download_project(Box2D-cmake
GIT_REPOSITORY https://github.com/tobanteGaming/Box2D-cmake.git
GIT_TAG 6cf2fe06fbd7a5b6f37affcbe39a4f3a7063df85
)
endfunction()
# Box2D
if(NOT TARGET tobanteGaming::Box2D)
rigid_ipc_download_box2d()
add_subdirectory(${RIGID_IPC_EXTERNAL}/Box2D-cmake box2d)
endif()
target_link_libraries(Box2D_comparison PUBLIC tobanteGaming::Box2D)
# Eigen through libigl
target_link_libraries(Box2D_comparison PUBLIC igl::core)
# Warnings
target_link_libraries(Box2D_comparison PUBLIC warnings::all)
# Json Parser
target_link_libraries(Box2D_comparison PUBLIC nlohmann_json::nlohmann_json)
# Logger
target_link_libraries(Box2D_comparison PUBLIC spdlog::spdlog)
# Command-Line Interface
target_link_libraries(Box2D_comparison PUBLIC CLI11::CLI11)