Link to math lib
parent
d8c123c434
commit
030c0c52df
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue