|
@@ -5,40 +5,40 @@ ENABLE_TESTING()
|
|
|
SET(CMAKE_CXX_STANDARD 17)
|
|
|
SET(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
|
-SET(ARTIS_MAJOR 1)
|
|
|
-SET(ARTIS_MINOR 0)
|
|
|
-SET(ARTIS_PATCH 0)
|
|
|
-SET(ARTIS_EXTRA "")
|
|
|
-SET(ARTIS_VERSION "${ARTIS_MAJOR}.${ARTIS_MINOR}.${ARTIS_PATCH}")
|
|
|
-SET(ARTIS_VERSION_SHORT "${ARTIS_MAJOR}.${ARTIS_MINOR}")
|
|
|
-SET(ARTIS_NAME "artis-star")
|
|
|
-SET(ARTIS_NAME_VERSION "${ARTIS_NAME}-${ARTIS_VERSION}")
|
|
|
-SET(ARTIS_LOCALE_NAME "${ARTIS_NAME}-${ARTIS_MAJOR}-${ARTIS_MINOR}")
|
|
|
-IF ("${ARTIS_EXTRA}" STREQUAL "")
|
|
|
- SET(ARTIS_COMPLETE "${ARTIS_MAJOR}.${ARTIS_MINOR}.${ARTIS_PATCH}")
|
|
|
-ELSE ("${ARTIS_EXTRA}" STREQUAL "")
|
|
|
- SET(ARTIS_COMPLETE "${ARTIS_MAJOR}.${ARTIS_MINOR}.${ARTIS_PATCH}-${ARTIS_EXTRA}")
|
|
|
-ENDIF ("${ARTIS_EXTRA}" STREQUAL "")
|
|
|
-SET(ARTIS_NAME_COMPLETE "${ARTIS_NAME}-${ARTIS_COMPLETE}")
|
|
|
+SET(ARTIS_STAR_MAJOR 1)
|
|
|
+SET(ARTIS_STAR_MINOR 0)
|
|
|
+SET(ARTIS_STAR_PATCH 0)
|
|
|
+SET(ARTIS_STAR_EXTRA "")
|
|
|
+SET(ARTIS_STAR_VERSION "${ARTIS_STAR_MAJOR}.${ARTIS_STAR_MINOR}.${ARTIS_STAR_PATCH}")
|
|
|
+SET(ARTIS_STAR_VERSION_SHORT "${ARTIS_STAR_MAJOR}.${ARTIS_STAR_MINOR}")
|
|
|
+SET(ARTIS_STAR_NAME "artis-star")
|
|
|
+SET(ARTIS_STAR_NAME_VERSION "${ARTIS_STAR_NAME}-${ARTIS_STAR_VERSION}")
|
|
|
+SET(ARTIS_STAR_LOCALE_NAME "${ARTIS_STAR_NAME}-${ARTIS_STAR_MAJOR}-${ARTIS_STAR_MINOR}")
|
|
|
+IF ("${ARTIS_STAR_EXTRA}" STREQUAL "")
|
|
|
+ SET(ARTIS_STAR_COMPLETE "${ARTIS_STAR_MAJOR}.${ARTIS_STAR_MINOR}.${ARTIS_STAR_PATCH}")
|
|
|
+ELSE ("${ARTIS_STAR_EXTRA}" STREQUAL "")
|
|
|
+ SET(ARTIS_STAR_COMPLETE "${ARTIS_STAR_MAJOR}.${ARTIS_STAR_MINOR}.${ARTIS_STAR_PATCH}-${ARTIS_STAR_EXTRA}")
|
|
|
+ENDIF ("${ARTIS_STAR_EXTRA}" STREQUAL "")
|
|
|
+SET(ARTIS_STAR_NAME_COMPLETE "${ARTIS_STAR_NAME}-${ARTIS_STAR_COMPLETE}")
|
|
|
|
|
|
#
|
|
|
# Installation variables
|
|
|
#
|
|
|
|
|
|
-SET(ARTIS_LIBRARY_DIRS "lib/artis-star-${ARTIS_VERSION_SHORT}")
|
|
|
-SET(ARTIS_INCLUDE_DIRS "include/artis-star-${ARTIS_VERSION_SHORT}/artis-star")
|
|
|
-SET(ARTIS_INCLUDE_DIR "include/artis-star-${ARTIS_VERSION_SHORT}")
|
|
|
-SET(ARTIS_MANPAGE_PATH "share/man/man1")
|
|
|
-SET(ARTIS_SHARE_DIRS "share/artis-star-${ARTIS_VERSION_SHORT}")
|
|
|
+SET(ARTIS_STAR_LIBRARY_DIRS "lib/artis-star-${ARTIS_STAR_VERSION_SHORT}")
|
|
|
+SET(ARTIS_STAR_INCLUDE_DIRS "include/artis-star-${ARTIS_STAR_VERSION_SHORT}/artis-star")
|
|
|
+SET(ARTIS_STAR_INCLUDE_DIR "include/artis-star-${ARTIS_STAR_VERSION_SHORT}")
|
|
|
+SET(ARTIS_STAR_MANPAGE_PATH "share/man/man1")
|
|
|
+SET(ARTIS_STAR_SHARE_DIRS "share/artis-star-${ARTIS_STAR_VERSION_SHORT}")
|
|
|
|
|
|
#
|
|
|
# Append the library version information to the library target
|
|
|
# properties.
|
|
|
#
|
|
|
|
|
|
-SET(ARTIS_LIBRARY_PROPERTIES VERSION 0)
|
|
|
-SET(ARTIS_APP_PROPERTIES SOVERSION "${ARTIS_MAJOR}.${ARTIS_MINOR}"
|
|
|
- VERSION "${ARTIS_MAJOR}.${ARTIS_MINOR}")
|
|
|
+SET(ARTIS_STAR_LIBRARY_PROPERTIES VERSION 0)
|
|
|
+SET(ARTIS_STAR_APP_PROPERTIES SOVERSION "${ARTIS_STAR_MAJOR}.${ARTIS_STAR_MINOR}"
|
|
|
+ VERSION "${ARTIS_STAR_MAJOR}.${ARTIS_STAR_MINOR}")
|
|
|
|
|
|
#
|
|
|
# Debug mode
|
|
@@ -80,22 +80,22 @@ find_package(Boost 1.71 COMPONENTS mpi serialization unit_test_framework)
|
|
|
# Generate the config.h
|
|
|
#
|
|
|
|
|
|
-CHECK_INCLUDE_FILE_CXX(cxxabi.h ARTIS_HAVE_GCC_ABI_DEMANGLE)
|
|
|
-CHECK_INCLUDE_FILE_CXX(execinfo.h ARTIS_HAVE_EXECINFO)
|
|
|
-CHECK_INCLUDE_FILE_CXX(signal.h ARTIS_HAVE_SIGNAL)
|
|
|
+CHECK_INCLUDE_FILE_CXX(cxxabi.h ARTIS_STAR_HAVE_GCC_ABI_DEMANGLE)
|
|
|
+CHECK_INCLUDE_FILE_CXX(execinfo.h ARTIS_STAR_HAVE_EXECINFO)
|
|
|
+CHECK_INCLUDE_FILE_CXX(signal.h ARTIS_STAR_HAVE_SIGNAL)
|
|
|
INCLUDE_DIRECTORIES(${ARTIS_STAR_BINARY_DIR})
|
|
|
|
|
|
#
|
|
|
# Generate the artis.pc pkg-config file.
|
|
|
#
|
|
|
|
|
|
-SET(ARTIS_PKGCONFIG_PREFIXPATH "${CMAKE_INSTALL_PREFIX}")
|
|
|
-SET(ARTIS_PKGCONFIG_BOOSTINCLUDE_DIRS "${Boost_INCLUDE_DIRS}")
|
|
|
-SET(ARTIS_PKGCONFIG_LIBDIR "lib")
|
|
|
+SET(ARTIS_STAR_PKGCONFIG_PREFIXPATH "${CMAKE_INSTALL_PREFIX}")
|
|
|
+SET(ARTIS_STAR_PKGCONFIG_BOOSTINCLUDE_DIRS "${Boost_INCLUDE_DIRS}")
|
|
|
+SET(ARTIS_STAR_PKGCONFIG_LIBDIR "lib")
|
|
|
|
|
|
CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/src/artis-star.pc.in
|
|
|
- ${ARTIS_STAR_BINARY_DIR}/artis-star-${ARTIS_VERSION_SHORT}.pc @ONLY)
|
|
|
-INSTALL(FILES ${ARTIS_STAR_BINARY_DIR}/artis-star-${ARTIS_VERSION_SHORT}.pc
|
|
|
+ ${ARTIS_STAR_BINARY_DIR}/artis-star-${ARTIS_STAR_VERSION_SHORT}.pc @ONLY)
|
|
|
+INSTALL(FILES ${ARTIS_STAR_BINARY_DIR}/artis-star-${ARTIS_STAR_VERSION_SHORT}.pc
|
|
|
DESTINATION lib/pkgconfig)
|
|
|
|
|
|
#
|
|
@@ -103,11 +103,11 @@ INSTALL(FILES ${ARTIS_STAR_BINARY_DIR}/artis-star-${ARTIS_VERSION_SHORT}.pc
|
|
|
#
|
|
|
|
|
|
IF (UNIX)
|
|
|
- INSTALL(FILES "README" DESTINATION "${ARTIS_SHARE_DIRS}")
|
|
|
- INSTALL(FILES "COPYING" DESTINATION "${ARTIS_SHARE_DIRS}")
|
|
|
+ INSTALL(FILES "README" DESTINATION "${ARTIS_STAR_SHARE_DIRS}")
|
|
|
+ INSTALL(FILES "COPYING" DESTINATION "${ARTIS_STAR_SHARE_DIRS}")
|
|
|
ELSE (UNIX)
|
|
|
- INSTALL(FILES "README" DESTINATION "${ARTIS_SHARE_DIRS}" RENAME "Readme.txt")
|
|
|
- INSTALL(FILES "COPYING" DESTINATION "${ARTIS_SHARE_DIRS}" RENAME "CopyRight.txt")
|
|
|
+ INSTALL(FILES "README" DESTINATION "${ARTIS_STAR_SHARE_DIRS}" RENAME "Readme.txt")
|
|
|
+ INSTALL(FILES "COPYING" DESTINATION "${ARTIS_STAR_SHARE_DIRS}" RENAME "CopyRight.txt")
|
|
|
ENDIF (UNIX)
|
|
|
|
|
|
#
|
|
@@ -144,15 +144,15 @@ ADD_SUBDIRECTORY(tests)
|
|
|
#
|
|
|
|
|
|
MESSAGE(STATUS "- - - -")
|
|
|
-MESSAGE(STATUS "${ARTIS_NAME_COMPLETE} configured successfully")
|
|
|
+MESSAGE(STATUS "${ARTIS_STAR_NAME_COMPLETE} configured successfully")
|
|
|
MESSAGE(STATUS "Using ${CMAKE_INSTALL_PREFIX} for installation")
|
|
|
MESSAGE(STATUS "Build type ${CMAKE_BUILD_TYPE}")
|
|
|
-IF (ARTIS_HAVE_GCC_ABI_DEMANGLE)
|
|
|
+IF (ARTIS_STAR_HAVE_GCC_ABI_DEMANGLE)
|
|
|
MESSAGE(STATUS "Build with GCC ABI Demangle...: yes")
|
|
|
-ENDIF (ARTIS_HAVE_GCC_ABI_DEMANGLE)
|
|
|
-IF (ARTIS_HAVE_EXECINFO)
|
|
|
+ENDIF (ARTIS_STAR_HAVE_GCC_ABI_DEMANGLE)
|
|
|
+IF (ARTIS_STAR_HAVE_EXECINFO)
|
|
|
MESSAGE(STATUS "Build with execinfo.h.........: yes")
|
|
|
-ENDIF (ARTIS_HAVE_EXECINFO)
|
|
|
+ENDIF (ARTIS_STAR_HAVE_EXECINFO)
|
|
|
IF (Boost_FOUND)
|
|
|
MESSAGE(STATUS "Build with boost..............: yes")
|
|
|
ENDIF (Boost_FOUND)
|