diff --git a/Applications/DataExplorer/VtkVis/CMakeLists.txt b/Applications/DataExplorer/VtkVis/CMakeLists.txt index d7f1940dbe126267a24864202b554e9c26a7858a..5ac05e61702dae7e308280112b18aea0c915ff88 100644 --- a/Applications/DataExplorer/VtkVis/CMakeLists.txt +++ b/Applications/DataExplorer/VtkVis/CMakeLists.txt @@ -131,7 +131,7 @@ if(GEOTIFF_FOUND) target_link_libraries(VtkVis INTERFACE ${GEOTIFF_LIBRARIES}) endif() # GEOTIFF_FOUND -target_link_libraries(VtkVis PUBLIC Qt4::QtGui) +target_link_libraries(VtkVis PUBLIC Qt4::QtGui QtDataView) target_link_libraries(VtkVis INTERFACE VtkAct) if(VTKOSGCONVERTER_FOUND) diff --git a/Applications/Utils/SimpleMeshCreation/createMeshElemPropertiesFromASCRaster.cpp b/Applications/Utils/SimpleMeshCreation/createMeshElemPropertiesFromASCRaster.cpp index ba1815dff7663952d513a1600d69e7592544a9a1..ced2bb7fa738c4b01172e2b3b71bdf61d91411d5 100644 --- a/Applications/Utils/SimpleMeshCreation/createMeshElemPropertiesFromASCRaster.cpp +++ b/Applications/Utils/SimpleMeshCreation/createMeshElemPropertiesFromASCRaster.cpp @@ -10,6 +10,7 @@ */ #include <algorithm> +#include <memory> #include <numeric> #include <tclap/CmdLine.h> diff --git a/FileIO/CMakeLists.txt b/FileIO/CMakeLists.txt index c2e92a3aaa9e994792167a51995adaf77b8e32db..0b680154fd2fcdbd813a610c67074fb4ce0f4554 100644 --- a/FileIO/CMakeLists.txt +++ b/FileIO/CMakeLists.txt @@ -61,6 +61,12 @@ target_link_libraries(FileIO INTERFACE ) if(QT4_FOUND) target_link_libraries(FileIO PUBLIC Qt4::QtXml Qt4::QtXmlPatterns) + if(WIN32 AND CMAKE_CROSSCOMPILING) + find_package(OpenSSL) + if(OPENSSL_FOUND) + target_link_libraries(FileIO PUBLIC Qt4::QtNetwork ${OPENSSL_LIBRARIES} ws2_32) + endif() + endif() endif() ADD_VTK_DEPENDENCY(FileIO) diff --git a/SimpleTests/MatrixTests/CMakeLists.txt b/SimpleTests/MatrixTests/CMakeLists.txt index 2d9fb5b6ead3f6f8bf302a9ce27896a4c47567df..46b7b4260f4d8257225209b618c63f6d43717c3a 100644 --- a/SimpleTests/MatrixTests/CMakeLists.txt +++ b/SimpleTests/MatrixTests/CMakeLists.txt @@ -1,8 +1,3 @@ -## pthread ## -if(WIN32) - set(ADDITIONAL_LIBS Winmm.lib) -endif() - if(CMAKE_USE_PTHREADS_INIT) set(HAVE_PTHREADS TRUE) endif() @@ -36,7 +31,6 @@ target_link_libraries(MatMult logog BaseLib MathLib - ${ADDITIONAL_LIBS} ) add_executable(MatTestRemoveRowsCols @@ -48,7 +42,6 @@ set_target_properties(MatTestRemoveRowsCols PROPERTIES FOLDER SimpleTests) target_link_libraries(MatTestRemoveRowsCols BaseLib MathLib - ${ADDITIONAL_LIBS} ) if(METIS_FOUND) @@ -64,7 +57,6 @@ if(METIS_FOUND) MathLib logog ${METIS_LIBRARIES} - ${ADDITIONAL_LIBS} ) if(OPENMP_FOUND) @@ -80,7 +72,6 @@ if(METIS_FOUND) MathLib logog ${METIS_LIBRARIES} - ${ADDITIONAL_LIBS} ) endif() endif() diff --git a/SimpleTests/MeshTests/CMakeLists.txt b/SimpleTests/MeshTests/CMakeLists.txt index 75680d32c0237ae76f5a5de84e7b1a08bfb8a48a..1610e782ba2700d0ebe864923ebd57ac958bd739 100644 --- a/SimpleTests/MeshTests/CMakeLists.txt +++ b/SimpleTests/MeshTests/CMakeLists.txt @@ -1,7 +1,3 @@ -if(WIN32) - set(ADDITIONAL_LIBS Winmm.lib) -endif() - # Create the executable add_executable(MeshRead MeshRead.cpp @@ -16,7 +12,6 @@ target_link_libraries(MeshRead BaseLib GeoLib logog - ${ADDITIONAL_LIBS} ${BOOST_LIBRARIES} ) @@ -34,6 +29,5 @@ target_link_libraries(MeshSearchTest BaseLib GeoLib logog - ${ADDITIONAL_LIBS} ${BOOST_LIBRARIES} ) diff --git a/SimpleTests/SolverTests/CMakeLists.txt b/SimpleTests/SolverTests/CMakeLists.txt index 64fbd047241198bd74c2dc056b008be67f71456b..cec6cda30aa788b92c6372e58827c79db913296d 100644 --- a/SimpleTests/SolverTests/CMakeLists.txt +++ b/SimpleTests/SolverTests/CMakeLists.txt @@ -1,7 +1,3 @@ -if(WIN32) - set(ADDITIONAL_LIBS Winmm.lib) -endif() - add_executable(ConjugateGradientUnpreconditioned ConjugateGradientUnpreconditioned.cpp ${SOURCES}