Commit Graph

136 Commits

Author SHA1 Message Date
Matthias Hochsteger
d64df5b4b0 include pybind11 subdir in cmake 2022-11-16 10:27:14 +01:00
Christopher Lackner
f87aa9e7d0 don't use system wide pybind11 per default 2022-11-14 11:27:26 +01:00
Matthias Hochsteger
81d9b0637b Merge remote-tracking branch 'origin/master' into StefanBruens-optionally_use_system_pybind11 2022-09-13 15:56:49 +02:00
Matthias Hochsteger
0e45a07c6a cmake - private linking of zlib 2022-07-11 11:10:54 +02:00
Stefan Brüns
95b4b49fc7 Optionally prefer system wide pybind11
Linux distributions typically prefer system provided libraries, so
optionally use it when found.

(This also allows to use the github provided tarball, which omits the
pybind11 submodule).

Fix the PYBIND_INCLUDE_DIR usage:
- remove misleading find_path invocation, which may point to the system
  wide pybind11
- use pybind11_INCLUDE_DIR	which is provided by both find_package(pybind11)
  and bundled pybind11/CMakeLists.txt
- pybind11_INCLUDE_DIR is used by pybind11_add_module, use it also for
  ngcore (core/register_archive.hpp)
2022-07-06 17:28:07 +02:00
Matthias Hochsteger
00d9583af3 fix non-gui build on Windows 2022-06-23 04:04:38 -07:00
Matthias Hochsteger
03347e8e33 fix tcl/tk build flags 2022-05-05 18:08:29 +02:00
Matthias Hochsteger
66078cb285 private tcl include dir 2022-05-05 17:01:12 +02:00
Matthias Hochsteger
b694b4667a rework build system, separate gui and non-gui code
move fieldlines code to meshing dir

move visualization function pointers to meshing directory

DLL_HEADER -> NGGUI_API in visualization lib

move soldata.hpp to meshing

update occ, no freetype necessary anymore
2022-05-05 14:39:31 +02:00
mhochsteger@cerbsim.com
dbbe91018d Don't pack bundle files into pip package on MacOS 2022-02-02 17:32:50 +01:00
mhochsteger@cerbsim.com
814cc59c08 work around issue with LIST_SEPARATOR on MacosM1
just pass one TK_INCLUDE_PATH and find the others when necessary
2021-12-02 14:32:30 +01:00
mhochsteger@cerbsim.com
0da6aeb94f Link Ws2_32.lib on Windows when building with OCC 2021-11-05 19:55:25 +01:00
mhochsteger@cerbsim.com
1cf9e3ff02 version handling, generate python configuration file 2021-10-28 13:57:24 +02:00
mhochsteger@cerbsim.com
d9e8b815f5 pip installer 2021-10-27 16:51:41 +02:00
mhochsteger@cerbsim.com
310a316127 fix OCC paths in NetgenConfig.cmake 2021-09-08 11:53:00 +02:00
mhochsteger@cerbsim.com
0b616dd90a list occ libs expliclitly 2021-09-07 15:02:32 +02:00
Matthias Hochsteger
9ddb034e55 link all occ libs 2021-09-06 13:26:02 +02:00
Matthias Hochsteger
467d0e5663 more restrictive occ linking 2021-09-03 13:12:23 +02:00
Matthias Hochsteger
40daa0327c Update OCC 2021-09-02 12:52:34 +00:00
Matthias Hochsteger
bfa88c88eb No write check on install dir with USE_SUPERBUILD=OFF 2021-03-02 09:29:09 +01:00
Matthias Hochsteger
65afc44dcc Handle USE_NATIVE_ARCH=ON correctly on Apple M1 2020-12-17 10:26:29 +01:00
Matthias Hochsteger
916eb09f1e Merge remote-tracking branch 'origin/master' into memory_tracing 2020-11-24 15:31:00 +01:00
mhochsteger
d7a1dda042 cmake - add version info to netgen.exe on Windows 2020-11-24 11:50:24 +01:00
Christopher Lackner
a69cdc9000 mem tracing compile time option, simplify by MemoryTracer as member 2020-11-21 15:49:07 +01:00
Matthias Hochsteger
7a1344bfcb cmake variable NG_COMPILE_FLAGS to set additional compile options 2020-10-01 13:35:53 +02:00
Matthias Hochsteger
52b372718c generate netgen_config.hpp containing all cmake options 2020-09-09 11:33:06 +02:00
Matthias Hochsteger
eb75bc31a6 mpi4py support 2020-07-29 17:23:26 +02:00
Matthias Hochsteger
829ff0aa53 fix install of netgen_version.hpp 2020-07-23 17:49:10 +02:00
Matthias Hochsteger
dcc0484be0 install netgen_version.hpp, set version in Archive 2020-07-23 16:25:06 +02:00
Christopher Lackner
efbd71c8d5 define cmake export compile commands after project 2020-06-03 12:42:35 +02:00
Matthias Hochsteger
94d489e183 cmake - remove compiler definition of NETGEN_VERSION 2020-06-03 11:54:56 +02:00
Matthias Hochsteger
267e8b33fb cmake - use git to generate version string 2020-05-18 15:55:40 +02:00
Matthias Hochsteger
a52ccd7ce5 Fix build with USE_NUMA=ON 2020-03-25 10:40:12 +01:00
Matthias Hochsteger
8fd08ef4ac Download prebuilt CGNS library on MacOS 2020-03-11 21:41:38 +01:00
Matthias Hochsteger
2615b0911e Fix CGNS code for version < 3.4
Install libhdf5 on ubuntu test (cgns depends on it)
2020-03-11 17:43:36 +01:00
Matthias Hochsteger
603141cf1a Fix CGNS support on Windows 2020-03-11 14:53:08 +00:00
Matthias Hochsteger
db5ad09b79 Initial CGNS format read support 2020-03-11 13:39:40 +01:00
Matthias Hochsteger
a5ffcb73c1 Build with '-fno-stack-check' on MacOS if USE_NATIVE_ACH=ON
XCode 11.3 introduced a bug with stack alignment if AVX is activated:
https://forums.developer.apple.com/thread/121887
According to the link, '-fno-stack-check' circumvents this problem
2020-01-17 13:09:44 +01:00
Matthias Hochsteger
ce90bd9e83 [cmake] Simplify compile flag handling on Windows
Add options/define flags to ngcore, so they are automatically passed on
to dependencies
2020-01-16 16:38:06 -08:00
Matthias Hochsteger
09afc419bc [cmake] option USE_NATIVE_ARCH for Windows 2020-01-15 16:49:27 -08:00
Matthias Hochsteger
f3d9d3ad67 [cmake] Don't link python libraries in unix-conda environment
Conda links python libs statically to python executable
2019-11-26 19:26:18 +00:00
Matthias Hochsteger
8f6517ff55 Terminal.app moved on MacOS Catalina 2019-09-10 14:20:31 +02:00
Joachim Schöberl
270ed2fd42 Revert "Merge branch 'pybind11_upgrade' into 'master'"
This reverts merge request !193
2019-08-09 15:59:33 +00:00
Christopher Lackner
3b257a448a upgrade pybind11 to v2.3 2019-08-09 13:14:38 +02:00
Christopher Lackner
ac28c07efc cmake syntax change (new cmake seems to not take 1 here...) 2019-07-29 07:12:56 +02:00
Christopher Lackner
56746b7bb4 add CMAKE_EXPORT_COMPILE_COMMANDS 2019-07-19 11:13:24 +02:00
Matthias Hochsteger
5fb91f26ed User AlignedAlloc for over-aligned types
MacOS < 10.13 doesn't support new with alignment>16 bytes
2019-07-10 13:36:31 +02:00
Matthias Hochsteger
c3a7fc2aab Switch to C++17 2019-07-10 12:57:19 +02:00
Matthias Hochsteger
b848bdc237 Fix MPI build 2019-07-10 12:33:01 +02:00
Christopher Lackner
99df9c0083 auto generate stub files using pybind11_stubgen 2019-06-29 20:01:05 +02:00