Commit 99bd37a1 authored by Langella Olivier's avatar Langella Olivier
Browse files

new CMakeStuff directory

parent af06e950
......@@ -11,86 +11,26 @@ cmake_minimum_required(VERSION 3.0)
# refer to the root source directory of the project as ${masschroq_SOURCE_DIR}
# and to the root binary directory of the project as ${masschroq_BINARY_DIR}.
PROJECT(masschroq CXX C)
project(masschroq CXX C)
set(CMAKE_COLOR_MAKEFILE ON)
set(CMAKE_VERBOSE_MAKEFILE ON)
# Add folder where are supportive functions
set(CMAKE_UTILS_PATH ${CMAKE_SOURCE_DIR}/CMakeStuff)
set(CMAKE_TOOLCHAINS_PATH ${CMAKE_UTILS_PATH}/toolchains)
set(CMAKE_MODULE_PATH ${CMAKE_UTILS_PATH}/modules)
# Include the system's uname that fills in SYSTEM_UNAME_S.
# Sets WIN64 if SYSTEM_UNAME_S is "^.*MING64.*"
include(${CMAKE_UTILS_PATH}/systemUname.cmake)
# Include the various colors we want to use in the output
include(${CMAKE_UTILS_PATH}/outputColors.cmake)
if (MXE)
#x86_64-w64-mingw32.shared-cmake -DCMAKE_BUILD_TYPE=Release -DMXE=1 ..
#Could not find a package configuration file provided by "Qt5XmlPatterns"
# => langella@piccolo:/media/langella/pappso/mxe$ make qtxmlpatterns
MESSAGE("MXE (M cross environment) https://mxe.cc/")
set (QCustomPlot_FOUND TRUE)
set (QCustomPlot_INCLUDES "/home/langella/developpement/git/qcustomplot")
set (QCustomPlot_LIBRARIES "/home/langella/developpement/git/qcustomplot/wbuild/libqcustomplot.dll")
#sudo apt install libc6-dev-i386
# QUAZIP_INCLUDE_DIR - Path to QuaZip include dir
set (QUAZIP_INCLUDE_DIR "/home/langella/developpement/git/quazip")
# QUAZIP_INCLUDE_DIRS - Path to QuaZip and zlib include dir (combined from QUAZIP_INCLUDE_DIR + ZLIB_INCLUDE_DIR)
# QUAZIP_LIBRARIES - List of QuaZip libraries
set (QUAZIP_QT5_LIBRARIES "/home/langella/developpement/git/quazip/wbuild/libquazip5.dll")
set (QUAZIP_LIBRARIES "/home/langella/developpement/git/quazip/wbuild/libquazip5.dll")
# QUAZIP_ZLIB_INCLUDE_DIR - The include dir of zlib headers
set(ODSSTREAM_QT5_FOUND 1)
set(ODSSTREAM_INCLUDE_DIR "/home/langella/developpement/git/libodsstream/src")
set(ODSSTREAM_QT5_LIBRARY "/home/langella/developpement/git/libodsstream/wbuild/src/libodsstream-qt5.dll")
if(NOT TARGET OdsStream::Core)
add_library(OdsStream::Core UNKNOWN IMPORTED)
set_target_properties(OdsStream::Core PROPERTIES
IMPORTED_LOCATION "${ODSSTREAM_QT5_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${ODSSTREAM_INCLUDE_DIR}"
)
endif()
set(PAPPSOMSPP_QT5_FOUND 1)
set(PAPPSOMSPP_WIDGET_QT5_FOUND 1)
set(PAPPSOMSPP_INCLUDE_DIR "/home/langella/developpement/git/pappsomspp/src")
mark_as_advanced(PAPPSOMSPP_INCLUDE_DIR)
set(PAPPSOMSPP_QT5_LIBRARY "/home/langella/developpement/git/pappsomspp/wbuild/src/libpappsomspp-qt5.dll")
mark_as_advanced(PAPPSOMSPP_QT5_LIBRARY)
set(PAPPSOMSPP_WIDGET_QT5_LIBRARY "/home/langella/developpement/git/pappsomspp/wbuild/src/pappsomspp/widget/libpappsomspp-widget-qt5.dll")
mark_as_advanced(PAPPSOMSPP_WIDGET_QT5_LIBRARY)
if(NOT TARGET Pappso::Core)
add_library(Pappso::Core UNKNOWN IMPORTED)
set_target_properties(Pappso::Core PROPERTIES
IMPORTED_LOCATION "${PAPPSOMSPP_QT5_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${PAPPSOMSPP_INCLUDE_DIR}")
endif()
if(NOT TARGET Pappso::Widget)
add_library(Pappso::Widget UNKNOWN IMPORTED)
set_target_properties(Pappso::Widget PROPERTIES
IMPORTED_LOCATION "${PAPPSOMSPP_WIDGET_QT5_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${PAPPSOMSPP_INCLUDE_DIR}")
endif()
set(Pwiz_FOUND 1)
set(Pwiz_INCLUDE_DIR "/home/langella/developpement/git/custompwiz/src")
set(Pwiz_LIBRARY "/home/langella/developpement/git/custompwiz/wbuild/src/libcustompwiz.dll")
if(NOT TARGET Pwiz::Pwiz)
add_library(Pwiz::Pwiz UNKNOWN IMPORTED)
set_target_properties(Pwiz::Pwiz PROPERTIES
IMPORTED_LOCATION "${Pwiz_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${Pwiz_INCLUDE_DIR}")
endif()
endif (MXE)
set(CMAKE_COLOR_MAKEFILE ON)
set(CMAKE_VERBOSE_MAKEFILE ON)
message("\n${BoldRed}Configuring build for project ${PROJECT}${ColourReset}\n")
# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
......@@ -98,9 +38,71 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
# We want C++17
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
message(STATUS "${BoldGreen}CMAKE_CXX_COMPILER: ${CMAKE_CXX_COMPILER}${ColourReset}")
#############################################################
# We do not want warnings for unknown pragmas:
message(STATUS "Setting definition -Wno-unknown-pragmas.${ColourReset}")
add_definitions(-Wno-unknown-pragmas)
# Enable warnings and possibly treat them as errors
message(STATUS "${BoldGreen}Setting definition -Wall.${ColourReset}")
add_definitions(-Wall)
message(STATUS "${BoldGreen}Setting definition -Wextra.${ColourReset}")
add_definitions(-Wextra)
if(WARN_AS_ERROR)
message(STATUS "${BoldYellow}Setting definition -Werror.${ColourReset}")
add_definitions(-Werror)
endif()
message(STATUS "${BoldRed}CMAKE_SOURCE_DIR: ${CMAKE_SOURCE_DIR}${ColourReset}")
#############################################################
#############################################################
# Platform-specific CMake configuration
if(MXE)
# Run the following cmake command line:
# x86_64-w64-mingw32.shared-cmake -DCMAKE_BUILD_TYPE=Release -DMXE=1 ../development
include(${CMAKE_TOOLCHAINS_PATH}/mxe-toolchain.cmake)
#include(${CMAKE_TOOLCHAINS_PATH}/mxe-toolchain-olivier.cmake)
# Set the name to the systemUname variable because in this situation that name
# is not found, it it passed as a flag in the command line.
set(systemUname "mxe")
elseif(UNIX AND NOT APPLE)
# Run the following cmake command line:
# cmake -DBUILD_USER_MANUAL=1 -DCMAKE_BUILD_TYPE=Debug
include(${CMAKE_TOOLCHAINS_PATH}/unix-toolchain.cmake)
elseif(WIN64)
# Run the following cmake command line:
# cmake -DBUILD_USER_MANUAL=0 -DCMAKE_BUILD_TYPE=Release ../development
include(${CMAKE_TOOLCHAINS_PATH}/win10-mingw64-toolchain.cmake)
elseif(APPLE)
# Run the following cmake command line:
# cmake -DBUILD_USER_MANUAL=0 -DCMAKE_BUILD_TYPE=Release ../development
include(${CMAKE_TOOLCHAINS_PATH}/apple-macport-toolchain.cmake)
endif()
message("")
message(STATUS "${BoldGreen}Starting configuration of ${PROJECT}${ColourReset}")
message("")
message(STATUS "${BoldYellow}The build toolchain is: ${SystemUname}${ColourReset}")
message("")
#depending on libpappsomspp version :
SET(LIBPAPPSOMSPP_VERSION "0.7.3-2")
set(LIBPAPPSOMSPP_VERSION "0.7.3-2")
configure_file (${CMAKE_SOURCE_DIR}/debian/control.cmake ${CMAKE_SOURCE_DIR}/debian/control @ONLY)
# Project version
......@@ -134,41 +136,6 @@ if (NOT CMAKE_INSTALL_PREFIX)
endif (NOT CMAKE_INSTALL_PREFIX)
if (NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE "Release")
#SET(CMAKE_BUILD_TYPE "RelWithDebInfo")
#SET( CMAKE_BUILD_TYPE "Debug")
endif (NOT CMAKE_BUILD_TYPE)
MESSAGE("CMAKE_BUILD_TYPE : ${CMAKE_BUILD_TYPE}")
IF(CMAKE_BUILD_TYPE MATCHES "Release")
MESSAGE("compiling as release version")
ADD_DEFINITIONS("-DQT_NO_DEBUG_OUTPUT")
ENDIF( CMAKE_BUILD_TYPE MATCHES "Release" )
IF(CMAKE_BUILD_TYPE MATCHES "Debug")
MESSAGE("compiling as debug version")
ENDIF( CMAKE_BUILD_TYPE MATCHES "Debug" )
IF(CMAKE_BUILD_TYPE MATCHES "RelWithDebInfo")
MESSAGE("compiling as release with debug info version")
ENDIF( CMAKE_BUILD_TYPE MATCHES "RelWithDebInfo" )
#############################################################
# We do not want warnings for unknown pragmas:
message(STATUS "Setting definition -Wno-unknown-pragmas.${ColourReset}")
add_definitions(-Wno-unknown-pragmas)
# Enable warnings and possibly treat them as errors
message(STATUS "${BoldGreen}Setting definition -Wall.${ColourReset}")
add_definitions(-Wall)
if(WARN_AS_ERROR)
message(STATUS "${BoldYellow}Setting definition -Werror.${ColourReset}")
add_definitions(-Werror)
endif()
message(STATUS "${BoldRed}CMAKE_SOURCE_DIR: ${CMAKE_SOURCE_DIR}${ColourReset}")
SET(CPACK_CMAKE_GENERATOR "Unix Makefiles")
......
#sudo apt install libalglib-dev
# Look for the necessary header
set(Alglib_INCLUDE_DIR /usr/include/libalglib)
mark_as_advanced(Alglib_INCLUDE_DIR)
# Look for the necessary library
set(Alglib_LIBRARY /usr/lib/x86_64-linux-gnu/libalglib.so)
mark_as_advanced(Alglib_LIBRARY)
set(Alglib_FOUND 1)
set(Alglib_INCLUDE_DIRS ${Alglib_INCLUDE_DIR})
set(Alglib_LIBRARIES ${Alglib_LIBRARY})
if(NOT TARGET Alglib::Alglib)
add_library(Alglib::Alglib UNKNOWN IMPORTED)
set_target_properties(Alglib::Alglib PROPERTIES
IMPORTED_LOCATION "${Alglib_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${Alglib_INCLUDE_DIR}")
endif()
# Copyright : Olivier Langella (CNRS)
# License : GPL-3.0+
# Authors : Olivier Langella, Filippo Rusconi
find_path(PappsoMSpp_INCLUDE_DIRS pappsomspp/types.h
PATHS /usr/local/include /usr/include
PATH_SUFFIXES pappsomspp libpappsomspp ENV PATH)
find_library(PappsoMSpp_LIBRARY NAMES pappsomspp)
if(PappsoMSpp_INCLUDE_DIRS AND PappsoMSpp_LIBRARY)
mark_as_advanced(PappsoMSpp_INCLUDE_DIRS)
mark_as_advanced(PappsoMSpp_LIBRARY)
message(STATUS "~~~~~~~~~~~~~ ${PappsoMSpp_LIBRARY} ~~~~~~~~~~~~~~~")
set(PappsoMSpp_FOUND TRUE)
endif()
if(PappsoMSpp_FOUND)
if(NOT PappsoMSpp_FIND_QUIETLY)
message(STATUS "Found PappsoMSpp_LIBRARY: ${PappsoMSpp_LIBRARY}")
endif()
if(NOT TARGET PappsoMSpp::Core)
add_library(PappsoMSpp::Core UNKNOWN IMPORTED)
set_target_properties(PappsoMSpp::Core PROPERTIES
IMPORTED_LOCATION "${PappsoMSpp_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${PappsoMSpp_INCLUDE_DIRS}")
endif()
find_library(PappsoMSppWidget_LIBRARY NAMES pappsomspp-widget)
if(PappsoMSpp_INCLUDE_DIRS AND PappsoMSppWidget_LIBRARY)
mark_as_advanced(PappsoMSppWidget_LIBRARY)
message(STATUS "~~~~~~~~~~~~~ ${PappsoMSppWidget_LIBRARY} ~~~~~~~~~~~~~~~")
set(PappsoMSppWidget_FOUND TRUE)
if(NOT TARGET PappsoMSpp::Widget)
add_library(PappsoMSpp::Widget UNKNOWN IMPORTED)
set_target_properties(PappsoMSpp::Widget PROPERTIES
IMPORTED_LOCATION "${PappsoMSppWidget_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${PappsoMSpp_INCLUDE_DIRS}")
endif()
endif()
if(NOT PappsoMSpp_FIND_QUIETLY)
message(STATUS "Found PappsoMSppWidget_LIBRARY: ${PappsoMSppWidget_LIBRARY}")
endif()
else()
if(PappsoMSpp_FIND_REQUIRED)
message(FATAL_ERROR "Could not find libpappsomspp. Please do specify the
PappsoMSpp_INCLUDE_DIRS and PappsoMSpp_LIBRARY variables using cmake!")
endif()
endif()
#sudo apt install libzstd-dev
# Look for the necessary header
set(Zstd_INCLUDE_DIR /usr/include)
mark_as_advanced(Zstd_INCLUDE_DIR)
# Look for the necessary library
set(Zstd_LIBRARY /usr/lib/x86_64-linux-gnu/libzstd.so)
mark_as_advanced(Zstd_LIBRARY)
set(Zstd_FOUND 1)
set(Zstd_INCLUDE_DIRS ${Zstd_INCLUDE_DIR})
set(Zstd_LIBRARIES ${Zstd_LIBRARY})
if(NOT TARGET Zstd::Zstd)
add_library(Zstd::Zstd UNKNOWN IMPORTED)
set_target_properties(Zstd::Zstd PROPERTIES
IMPORTED_LOCATION "${Zstd_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${Zstd_INCLUDE_DIR}")
endif()
# We want to use some colors for the message output.
string(ASCII 27 Esc)
set(ColourReset "${Esc}[m")
set(ColourBold "${Esc}[1m")
set(Red "${Esc}[31m")
set(Green "${Esc}[32m")
set(Yellow "${Esc}[33m")
set(Blue "${Esc}[34m")
set(Magenta "${Esc}[35m")
set(Cyan "${Esc}[36m")
set(White "${Esc}[37m")
set(BoldRed "${Esc}[1;31m")
set(BoldGreen "${Esc}[1;32m")
set(BoldYellow "${Esc}[1;33m")
set(BoldBlue "${Esc}[1;34m")
set(BoldMagenta "${Esc}[1;35m")
set(BoldCyan "${Esc}[1;36m")
set(BoldWhite "${Esc}[1;37m")
# Ask that uname -s be performed and store the value in SYSTEM_UNAME_S for
# later reference.
macro(get_uname_string)
execute_process(COMMAND uname -s OUTPUT_VARIABLE SYSTEM_UNAME_S)
if(${SYSTEM_UNAME_S} MATCHES "^.*MINGW64.*")
message(STATUS "System detected as Windows, setting WIN64")
set(WIN64 1)
#else()
#message(STATUS "System is not Windows.")
endif()
endmacro()
get_uname_string()
# This file should be included if the command line reads like this:
# x86_64-w64-mingw32.shared-cmake -DCMAKE_BUILD_TYPE=Release -DMXE=1 ..
MESSAGE("MXE (M cross environment) https://mxe.cc/")
message("Please run the configuration like this:")
message("x86_64-w64-mingw32.shared-cmake -DMXE=1 -G \"Unix Makefiles\" -DCMAKE_BUILD_TYPE=Release ../../development")
set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES /media/langella/pappso/mxe/usr/x86_64-w64-mingw32.shared/include)
set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES /media/langella/pappso/mxe/usr/x86_64-w64-mingw32.shared/include)
if(WIN32 OR _WIN32)
message(STATUS "Building with WIN32 defined.")
endif()
set (QCustomPlot_FOUND TRUE)
set (QCustomPlot_INCLUDES "/home/langella/developpement/git/qcustomplot")
set (QCustomPlot_LIBRARIES "/home/langella/developpement/git/qcustomplot/wbuild/libqcustomplot.dll")
#sudo apt install libc6-dev-i386
# QUAZIP_INCLUDE_DIR - Path to QuaZip include dir
set (QUAZIP_INCLUDE_DIR "/home/langella/developpement/git/quazip")
# QUAZIP_INCLUDE_DIRS- Path to QuaZip and zlib include dir (combined from QUAZIP_INCLUDE_DIR + ZLIB_INCLUDE_DIR)
# QUAZIP_LIBRARIES - List of QuaZip libraries
set (QUAZIP_QT5_LIBRARIES "/home/langella/developpement/git/quazip/wbuild/libquazip5.dll")
set (QUAZIP_LIBRARIES "/home/langella/developpement/git/quazip/wbuild/libquazip5.dll")
# QUAZIP_ZLIB_INCLUDE_DIR- The include dir of zlib headers
set(ODSSTREAM_QT5_FOUND 1)
set(ODSSTREAM_INCLUDE_DIR "/home/langella/developpement/git/libodsstream/src")
set(ODSSTREAM_QT5_LIBRARY "/home/langella/developpement/git/libodsstream/wbuild/src/libodsstream-qt5.dll")
if(NOT TARGET OdsStream::Core)
add_library(OdsStream::Core UNKNOWN IMPORTED)
set_target_properties(OdsStream::Core PROPERTIES
IMPORTED_LOCATION "${ODSSTREAM_QT5_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${ODSSTREAM_INCLUDE_DIR}"
)
endif()
set(PAPPSOMSPP_QT5_FOUND 1)
set(PAPPSOMSPP_WIDGET_QT5_FOUND 1)
set(PAPPSOMSPP_INCLUDE_DIR "/home/langella/developpement/git/pappsomspp/src")
mark_as_advanced(PAPPSOMSPP_INCLUDE_DIR)
set(PAPPSOMSPP_QT5_LIBRARY "/home/langella/developpement/git/pappsomspp/wbuild/src/libpappsomspp-qt5.dll")
mark_as_advanced(PAPPSOMSPP_QT5_LIBRARY)
set(PAPPSOMSPP_WIDGET_QT5_LIBRARY "/home/langella/developpement/git/pappsomspp/wbuild/src/pappsomspp/widget/libpappsomspp-widget-qt5.dll")
mark_as_advanced(PAPPSOMSPP_WIDGET_QT5_LIBRARY)
if(NOT TARGET Pappso::Core)
add_library(Pappso::Core UNKNOWN IMPORTED)
set_target_properties(Pappso::Core PROPERTIES
IMPORTED_LOCATION "${PAPPSOMSPP_QT5_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${PAPPSOMSPP_INCLUDE_DIR}")
endif()
if(NOT TARGET Pappso::Widget)
add_library(Pappso::Widget UNKNOWN IMPORTED)
set_target_properties(Pappso::Widget PROPERTIES
IMPORTED_LOCATION "${PAPPSOMSPP_WIDGET_QT5_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${PAPPSOMSPP_INCLUDE_DIR}")
endif()
set(Pwiz_FOUND 1)
set(Pwiz_INCLUDE_DIR "/home/langella/developpement/git/custompwiz/src")
set(Pwiz_LIBRARY "/home/langella/developpement/git/custompwiz/wbuild/src/libcustompwiz.dll")
if(NOT TARGET Pwiz::Pwiz)
add_library(Pwiz::Pwiz UNKNOWN IMPORTED)
set_target_properties(Pwiz::Pwiz PROPERTIES
IMPORTED_LOCATION "${Pwiz_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${Pwiz_INCLUDE_DIR}")
endif()
# File:///home/langella/developpement/git/pappsomspp/CMakeStuff/toolchains/mxe-toolchain.cmake#
# This file should be included if the command line reads like this:
# x86_64-w64-mingw32.shared-cmake -DCMAKE_BUILD_TYPE=Release -DMXE=1 ..
message("MXE (M cross environment) https://mxe.cc/")
message("Please run the configuration like this:")
message("x86_64-w64-mingw32.shared-cmake -DMXE= 1 -G \"Unix Makefiles\" -DCMAKE_BUILD_TYPE=Release ../../development")
set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES ${HOME_DEVEL_DIR}/mxe/usr/x86_64-w64-mingw32.shared/include)
set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES ${HOME_DEVEL_DIR}/mxe/usr/x86_64-w64-mingw32.shared/include)
if(WIN32 OR _WIN32)
message(STATUS "Building with WIN32 defined.")
endif()
message(STATUS "${BoldGreen}Setting definition -DPMSPP_LIBRARY for symbol DLL export.${ColourReset}")
add_definitions(-DPMSPP_LIBRARY)
find_package(ZLIB REQUIRED)
find_package(SQLite3 REQUIRED)
#install MXE qtsvg package
#langella@piccolo:/media/langella/pappso/mxe$ make qtsvg
set(QCustomPlot_FOUND 1)
set(QCustomPlot_INCLUDE_DIR "${HOME_DEVEL_DIR}/qcustomplot/development")
set(QCustomPlot_LIBRARIES "${HOME_DEVEL_DIR}/qcustomplot/build-area/mxe/libqcustomplot.dll")
if(NOT TARGET QCustomPlot::QCustomPlot)
add_library(QCustomPlot::QCustomPlot UNKNOWN IMPORTED)
set_target_properties(QCustomPlot::QCustomPlot PROPERTIES
IMPORTED_LOCATION "${QCustomPlot_LIBRARIES}"
INTERFACE_INCLUDE_DIRECTORIES "${QCustomPlot_INCLUDE_DIR}"
INTERFACE_COMPILE_DEFINITIONS QCUSTOMPLOT_USE_LIBRARY)
endif()
if(MAKE_TEST)
set(Quazip5_FOUND 1)
set(Quazip5_INCLUDE_DIRS "${HOME_DEVEL_DIR}/quazip5/development")
set(Quazip5_LIBRARY "${HOME_DEVEL_DIR}/quazip5/build-area/mxe/libquazip5.dll")
if(NOT TARGET Quazip5::Quazip5)
add_library(Quazip5::Quazip5 UNKNOWN IMPORTED)
set_target_properties(Quazip5::Quazip5 PROPERTIES
IMPORTED_LOCATION "${Quazip5_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${Quazip5_INCLUDE_DIRS}")
endif()
endif()
set(OdsStream_QT5_FOUND 1)
set(OdsStream_INCLUDE_DIR "c:/msys64/home/mydar/devel/odsstream/src")
set(OdsStream_QT5_LIBRARY "c:/msys64/home/mydar/devel/odsstream/build-area/mxe/src/libodsstream-qt5.dll")
if(NOT TARGET OdsStream::Core)
add_library(OdsStream::Core UNKNOWN IMPORTED)
set_target_properties(OdsStream::Core PROPERTIES
IMPORTED_LOCATION "${OdsStream_QT5_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${OdsStream_INCLUDE_DIR}"
)
endif()
set(Alglib_FOUND 1)
set(Alglib_INCLUDE_DIR "${HOME_DEVEL_DIR}/alglib/development/src")
set(Alglib_LIBRARY "${HOME_DEVEL_DIR}/alglib/build-area/mxe/libalglib.dll")
if(NOT TARGET Alglib::Alglib)
add_library(Alglib::Alglib UNKNOWN IMPORTED)
set_target_properties(Alglib::Alglib PROPERTIES
IMPORTED_LOCATION "${Alglib_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${Alglib_INCLUDE_DIR}")
endif()
# All this belly dance does not seem necessary. Just perform like for the other
# libraries...
# Look for the necessary header
set(Zstd_INCLUDE_DIR ${HOME_DEVEL_DIR}/mxe/usr/x86_64-w64-mingw32.shared/include)
mark_as_advanced(Zstd_INCLUDE_DIR)
set(Zstd_INCLUDE_DIRS ${Zstd_INCLUDE_DIR})
# Look for the necessary library
set(Zstd_LIBRARY ${HOME_DEVEL_DIR}/mxe/usr/x86_64-w64-mingw32.shared/bin/libzstd.dll)
mark_as_advanced(Zstd_LIBRARY)
# Mark the lib as found
set(Zstd_FOUND 1)
set(Zstd_LIBRARIES ${Zstd_LIBRARY})
if(NOT TARGET Zstd::Zstd)
add_library(Zstd::Zstd UNKNOWN IMPORTED)
set_target_properties(Zstd::Zstd PROPERTIES
IMPORTED_LOCATION "${Zstd_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${Zstd_INCLUDE_DIR}")
endif()
message("UNIX non APPLE environment")
message("Please run the configuration like this:")
message("cmake -G \"Unix Makefiles\" -DCMAKE_BUILD_TYPE=Debug ../development")
set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES /usr/include)
set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES /usr/include)
if (NOT OdsStream_FOUND)
find_package( OdsStream REQUIRED )
endif (NOT OdsStream_FOUND)
if (NOT PappsoMSpp_FOUND)
find_package ( PappsoMSpp REQUIRED )
endif (NOT PappsoMSpp_FOUND)
#find_package( Boost COMPONENTS iostreams thread filesystem chrono REQUIRED )
find_package( Boost COMPONENTS thread filesystem iostreams REQUIRED )
set(Alglib_DIR ${CMAKE_MODULE_PATH})
find_package(Alglib REQUIRED)
find_package( ZLIB REQUIRED )
set(Zstd_DIR ${CMAKE_MODULE_PATH})
find_package(Zstd REQUIRED)
Supports Markdown
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