Link to math lib

fixes-turtlebasket
Mattia Montanari 2022-07-09 23:55:41 +02:00
parent d8c123c434
commit 030c0c52df
1 changed files with 10 additions and 6 deletions

View File

@ -21,16 +21,18 @@
# FOR A PARTICULAR PURPOSE. See GNU General Public License for details. # # FOR A PARTICULAR PURPOSE. See GNU General Public License for details. #
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
cmake_policy(SET CMP0048 NEW) cmake_policy(SET CMP0048 NEW)
cmake_policy(SET CMP0079 NEW)
option(BUILD_EXAMPLE "Build demo" ON) option(BUILD_EXAMPLE "Build demo" ON)
set(GK_VERSION_MAJOR 3)
set(GK_VERSION_MINOR 0)
set(GK_VERSION_PATCH 0)
project(lib_opengjk_ce project(lib_opengjk_ce
LANGUAGES C LANGUAGES C
VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH} DESCRIPTION "openGJK library community edition (CE)"
DESCRIPTION "openGJK library" HOMEPAGE_URL "www.mattiamontanari.com/opengjk/"
HOMEPAGE_URL "https://mattiamontanari.com/opengjk" VERSION ${GK_VERSION_MAJOR}.${GK_VERSION_MINOR}.${GK_VERSION_PATCH}
) )
set( C_STANDARD 99) set( C_STANDARD 99)
@ -52,6 +54,8 @@ add_library(${PROJECT_NAME}
${GK_PUBLIC_HEADER_DIR}/openGJK/openGJK.h ${GK_PUBLIC_HEADER_DIR}/openGJK/openGJK.h
) )
target_link_libraries(${PROJECT_NAME} m)
target_include_directories( target_include_directories(
${PROJECT_NAME} ${PROJECT_NAME}
PUBLIC PUBLIC