Commit 41e6db3c authored by Valerio Bertone's avatar Valerio Bertone
Browse files

Revert "Updating code to more recent version of the the dependencies"

This reverts commit 5f8a6122.
parent 5f8a6122
/.settings/ /.settings/
/.externalToolBuilders/ /.externalToolBuilders/
CMakeCache.txt \ No newline at end of file
CMakeFiles/
Makefile
PARTONS_example_autogen/
cmake_install.cmake
...@@ -7,12 +7,7 @@ cmake_minimum_required(VERSION 2.6) ...@@ -7,12 +7,7 @@ cmake_minimum_required(VERSION 2.6)
project(PARTONS_release CXX) project(PARTONS_release CXX)
# define c++ standard and issue all the warning demanded by this standard # define c++ standard and issue all the warning demanded by this standard
add_definitions(-std=c++11 -pedantic -Wno-vla-extension) add_definitions(-std=c++98 -pedantic)
set(CMAKE_CXX_STANDARD 11)
if (NOT DEFINED CMAKE_MACOSX_RPATH)
set(CMAKE_MACOSX_RPATH 0)
endif()
# AUTOMOC ================================================================================== # AUTOMOC ==================================================================================
...@@ -27,10 +22,11 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON) ...@@ -27,10 +22,11 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
# find libraries: gsl # find libraries: gsl
find_package(GSL) find_package(GSL)
# find libraries: Qt # find libraries: Qt4
find_package(Qt5 COMPONENTS Core Sql REQUIRED) find_package(Qt4 REQUIRED QtCore QtSql)
# add some useful macros and variables # add some useful macros and variables
include(${QT_USE_FILE})
add_definitions(${QT_DEFINITIONS}) add_definitions(${QT_DEFINITIONS})
# find libraries: additional modules # find libraries: additional modules
...@@ -49,7 +45,7 @@ find_package(NumA++ REQUIRED) ...@@ -49,7 +45,7 @@ find_package(NumA++ REQUIRED)
find_package(PARTONS REQUIRED) find_package(PARTONS REQUIRED)
# directories containing headers # directories containing headers
include_directories($(GSL_INCLUDE_DIRS) ${QT_INCLUDE_DIRS} ${SFML_INCLUDE_DIR} ${ElementaryUtils_INCLUDE_DIR} ${NumA++_INCLUDE_DIR} ${PARTONS_INCLUDE_DIR}) include_directories($(GSL_INCLUDE_DIRS) ${QT_INCLUDE_DIRS} ${SFML_INCLUDE_DIR} ${ELEMENTARY_UTILS_INCLUDE_DIR} ${NUMA_INCLUDE_DIR} ${PARTONS_INCLUDE_DIR})
# FINALIZE ================================================================================== # FINALIZE ==================================================================================
...@@ -82,15 +78,11 @@ target_link_libraries( ...@@ -82,15 +78,11 @@ target_link_libraries(
${QT_LIBRARIES} ${QT_LIBRARIES}
${SFML_LIBRARIES} ${SFML_LIBRARIES}
${ElementaryUtils_LIBRARIES} ${ELEMENTARY_UTILS_LIBRARIES}
${NumA++_LIBRARIES} ${NUMA_LIBRARIES}
${PARTONS_LIBRARIES} ${PARTONS_LIBRARIES}
Qt5::Core
Qt5::Sql
) )
...@@ -2,18 +2,18 @@ ...@@ -2,18 +2,18 @@
# #
# Once done this will define # Once done this will define
# #
# ElementaryUtils_FOUND - system has Elementary_Utils lib # ELEMENTARY_UTILS_FOUND - system has Elementary_Utils lib
# ElementaryUtils_LIBRARIES - the path of the library # ELEMENTARY_UTILS_LIBRARIES - the path of the library
# ElementaryUtils_INCLUDE_DIR - the include directory # ELEMENTARY_UTILS_INCLUDE_DIR - the include directory
if (ElementaryUtils_INCLUDE_DIR AND ElementaryUtils_LIBRARIES) if (ELEMENTARY_UTILS_INCLUDE_DIR AND ELEMENTARY_UTILS_LIBRARIES)
# in cache already # in cache already
set(ElementaryUtils_FOUND TRUE) set(ELEMENTARY_UTILS_FOUND TRUE)
else (ElementaryUtils_INCLUDE_DIR AND ElementaryUtils_LIBRARIES) else (ELEMENTARY_UTILS_INCLUDE_DIR AND ELEMENTARY_UTILS_LIBRARIES)
find_path(ElementaryUtils_INCLUDE_DIR ElementaryUtils/PropertiesManager.h find_path(ELEMENTARY_UTILS_INCLUDE_DIR ElementaryUtils/PropertiesManager.h
PATHS PATHS
${CMAKE_INSTALL_PREFIX} ${CMAKE_INSTALL_PREFIX}
${CMAKE_SOURCE_DIR}/../ElementaryUtils ${CMAKE_SOURCE_DIR}/../ElementaryUtils
...@@ -24,7 +24,7 @@ else (ElementaryUtils_INCLUDE_DIR AND ElementaryUtils_LIBRARIES) ...@@ -24,7 +24,7 @@ else (ElementaryUtils_INCLUDE_DIR AND ElementaryUtils_LIBRARIES)
PATH_SUFFIXES include/PARTONS include PATH_SUFFIXES include/PARTONS include
) )
find_library(ElementaryUtils_LIBRARIES find_library(ELEMENTARY_UTILS_LIBRARIES
NAMES ElementaryUtils NAMES ElementaryUtils
PATHS PATHS
${CMAKE_INSTALL_PREFIX} ${CMAKE_INSTALL_PREFIX}
...@@ -36,7 +36,7 @@ else (ElementaryUtils_INCLUDE_DIR AND ElementaryUtils_LIBRARIES) ...@@ -36,7 +36,7 @@ else (ElementaryUtils_INCLUDE_DIR AND ElementaryUtils_LIBRARIES)
PATH_SUFFIXES lib/PARTONS lib64/PARTONS bin/PARTONS lib lib64 bin) PATH_SUFFIXES lib/PARTONS lib64/PARTONS bin/PARTONS lib lib64 bin)
include(FindPackageHandleStandardArgs) include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(ElementaryUtils DEFAULT_MSG ElementaryUtils_INCLUDE_DIR ElementaryUtils_LIBRARIES) find_package_handle_standard_args(ELEMENTARY_UTILS DEFAULT_MSG ELEMENTARY_UTILS_INCLUDE_DIR ELEMENTARY_UTILS_LIBRARIES)
endif(ElementaryUtils_INCLUDE_DIR AND ElementaryUtils_LIBRARIES) endif(ELEMENTARY_UTILS_INCLUDE_DIR AND ELEMENTARY_UTILS_LIBRARIES)
...@@ -2,18 +2,18 @@ ...@@ -2,18 +2,18 @@
# #
# Once done this will define # Once done this will define
# #
# NumA++_FOUND - system has NumA++ lib # NUMA_FOUND - system has NumA++ lib
# NumA++_LIBRARIES - the path of the library # NUMA_LIBRARIES - the path of the library
# NumA++_INCLUDE_DIR - the include directory # NUMA_INCLUDE_DIR - the include directory
if (NumA++_INCLUDE_DIR AND NumA++_LIBRARIES) if (NUMA_INCLUDE_DIR AND NUMA_LIBRARIES)
# in cache already # in cache already
set(NumA++_FOUND TRUE) set(NUMA_FOUND TRUE)
else (NumA++_INCLUDE_DIR AND NumA++_LIBRARIES) else (NUMA_INCLUDE_DIR AND NUMA_LIBRARIES)
find_path(NumA++_INCLUDE_DIR NAMES NumA/integration/Integrator.h NumA++/integration/Integrator.h find_path(NUMA_INCLUDE_DIR NAMES NumA/integration/Integrator.h NumA++/integration/Integrator.h
PATHS PATHS
${CMAKE_INSTALL_PREFIX} ${CMAKE_INSTALL_PREFIX}
${CMAKE_SOURCE_DIR}/../numa ${CMAKE_SOURCE_DIR}/../numa
...@@ -26,7 +26,7 @@ else (NumA++_INCLUDE_DIR AND NumA++_LIBRARIES) ...@@ -26,7 +26,7 @@ else (NumA++_INCLUDE_DIR AND NumA++_LIBRARIES)
PATH_SUFFIXES include/PARTONS include PATH_SUFFIXES include/PARTONS include
) )
find_library(NumA++_LIBRARIES find_library(NUMA_LIBRARIES
NAMES NumA NumA++ NAMES NumA NumA++
PATHS PATHS
${CMAKE_INSTALL_PREFIX} ${CMAKE_INSTALL_PREFIX}
...@@ -40,7 +40,7 @@ else (NumA++_INCLUDE_DIR AND NumA++_LIBRARIES) ...@@ -40,7 +40,7 @@ else (NumA++_INCLUDE_DIR AND NumA++_LIBRARIES)
PATH_SUFFIXES lib/PARTONS lib64/PARTONS bin/PARTONS lib lib64 bin) PATH_SUFFIXES lib/PARTONS lib64/PARTONS bin/PARTONS lib lib64 bin)
include(FindPackageHandleStandardArgs) include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(NumA++ DEFAULT_MSG NumA++_INCLUDE_DIR NumA++_LIBRARIES) find_package_handle_standard_args(NUMA DEFAULT_MSG NUMA_INCLUDE_DIR NUMA_LIBRARIES)
endif(NumA++_INCLUDE_DIR AND NumA++_LIBRARIES) endif(NUMA_INCLUDE_DIR AND NUMA_LIBRARIES)
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