Commit 67d864b4 authored by Luís de Sousa's avatar Luís de Sousa
Browse files

Adapted CMake files to the Hexagonal implementation.

parent c66ab186
......@@ -49,20 +49,20 @@ install(FILES
${CAAPI_IMPL_SOURCES}
${CAAPI_IMPL_HEADERS}
${CAAPI_IMPL_CAFUNCTIONS}
DESTINATION impls/square-cell/vn-neighbours/1-levels/simple
DESTINATION impls/hexagonal-cell/1-levels/simple
COMPONENT ${CAAPI_IMPL_COMPONENT_NAME})
install(FILES
${CAAPI_IMPL_EXTRA_DATA}
DESTINATION impls/square-cell/vn-neighbours/1-levels/simple/extra/
DESTINATION impls/hexagonal-cell/1-levels/simple/extra/
COMPONENT ${CAAPI_IMPL_COMPONENT_NAME})
########################## PACKAGE ##########################
# Add the newly created component
cpack_add_component(${CAAPI_IMPL_COMPONENT_NAME} DISPLAY_NAME "${CAAPI_IMPL_NAME} version ${CAAPI_IMPL_VERSION}"
DESCRIPTION "Simple implementation of the CAAPI that uses a square
grid with one single level of von Neumann neighbourhood that run on a single CPU "
DESCRIPTION "Simple implementation of the CAAPI that uses an hexagonal
grid with one single neighbourhood level running on a single CPU "
GROUP impls)
......
......@@ -17,11 +17,13 @@ message(STATUS "[${CAAPI_IMPL_NAME}]: CAAPI Version ${CAAPI_VERSION}")
message(STATUS "[${CAAPI_IMPL_NAME}]: CAAPI Implementation Version ${CAAPI_IMPL_VERSION}")
if (WIN32)
add_definitions( /DAsciiGrid=HexAsciiGrid )
add_definitions( /DCAAPI_IMPL_NAME=${CAAPI_IMPL_NAME} )
add_definitions( /DCAAPI_IMPL_SHORTNAME=${CAAPI_IMPL_SHORTNAME} )
add_definitions( /DCAAPI_VERSION=${CAAPI_VERSION} )
add_definitions( /DCAAPI_IMPL_VERSION=${CAAPI_IMPL_VERSION} )
else()
add_definitions( /DAsciiGrid=HexAsciiGrid )
add_definitions( -DCAAPI_IMPL_NAME=${CAAPI_IMPL_NAME} )
add_definitions( -DCAAPI_IMPL_SHORTNAME=${CAAPI_IMPL_SHORTNAME} )
add_definitions( -DCAAPI_VERSION=${CAAPI_VERSION} )
......
......@@ -47,12 +47,12 @@ install(FILES
${CAAPI_IMPL_SOURCES}
${CAAPI_IMPL_HEADERS}
${CAAPI_IMPL_CAFUNCTIONS}
DESTINATION impls/square-cell/vn-neighbours/1-levels/simple
DESTINATION impls/hexagonal-cell/1-levels/simple
COMPONENT ${CAAPI_IMPL_COMPONENT_NAME})
install(FILES
${CAAPI_IMPL_EXTRA_DATA}
DESTINATION impls/square-cell/vn-neighbours/1-levels/simple/extra/
DESTINATION impls/hexagonal-cell/1-levels/simple
COMPONENT ${CAAPI_IMPL_COMPONENT_NAME})
# Add the newly created component
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment