2022-07-09 14:10:45 -07:00
|
|
|
# _____ _ _ __ #
|
|
|
|
# / ____| | | |/ / #
|
|
|
|
# ___ _ __ ___ _ __ | | __ | | ' / #
|
|
|
|
# / _ \| '_ \ / _ \ '_ \| | |_ |_ | | < #
|
|
|
|
# | (_) | |_) | __/ | | | |__| | |__| | . \ #
|
|
|
|
# \___/| .__/ \___|_| |_|\_____|\____/|_|\_\ #
|
|
|
|
# | | #
|
|
|
|
# |_| #
|
|
|
|
# #
|
|
|
|
# Copyright 2022 Mattia Montanari, University of Oxford #
|
|
|
|
# #
|
|
|
|
# This program is free software: you can redistribute it and/or modify it under #
|
|
|
|
# the terms of the GNU General Public License as published by the Free Software #
|
|
|
|
# Foundation, either version 3 of the License. You should have received a copy #
|
|
|
|
# of the GNU General Public License along with this program. If not, visit #
|
|
|
|
# #
|
|
|
|
# https://www.gnu.org/licenses/ #
|
|
|
|
# #
|
|
|
|
# This program is distributed in the hope that it will be useful, but WITHOUT #
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
|
|
|
# FOR A PARTICULAR PURPOSE. See GNU General Public License for details. #
|
|
|
|
|
|
|
|
project(example_lib_opengjk_ce
|
|
|
|
LANGUAGES C
|
|
|
|
VERSION 1.0.0
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/main.c)
|
|
|
|
target_link_libraries(${PROJECT_NAME} lib_opengjk_ce)
|
|
|
|
|
|
|
|
# Copy input files for this example after build
|
|
|
|
add_custom_command(
|
|
|
|
TARGET ${PROJECT_NAME} POST_BUILD
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/userP.dat
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/userP.dat
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/userQ.dat
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/userQ.dat
|
|
|
|
)
|