Lukas Böger
36f7d86cad
fix CMake 3.12 list(REMOVE ...) invocation
2021-07-20 15:37:56 +01:00
Lukas Böger
d7c28021c8
set default build type, add sanitizer build support
2021-07-20 15:37:56 +01:00
Lukas Böger
e9391c93fb
mimic Makefile's ntp and stdint conditional compilation
2021-07-20 15:37:56 +01:00
Lukas Böger
434a36f0b9
remove error on apple/unix and set platform string
2021-07-20 15:37:56 +01:00
Lukas Böger
92d5f8eae1
apply static flag for bootstrap exec, too
...
This is required for the Windows configuration to succeed at all. It
should also be beneficial when we start sharing object code between
bootstrap and actual executable.
2021-07-13 14:03:24 +01:00
Lukas Böger
0f1dfad91c
eliminate last global flag, move library definition
2021-07-13 14:03:24 +01:00
Lukas Böger
b0c0afcb73
prefer configure_file over manual file(WRITE ...)
2021-07-13 14:03:24 +01:00
Lukas Böger
514d58264f
Use builtin variable for shared object suffix
2021-07-13 14:03:24 +01:00
Lukas Böger
2f663dff33
fix repeated target_link_libraries on bootstrap target
2021-07-13 14:03:24 +01:00
Lukas Böger
7595ecbc09
replace more global commands by target-based ones
2021-07-13 14:03:24 +01:00
Lukas Böger
4b5ebffa5b
build static libs by default on windows
2021-07-13 14:03:24 +01:00
Lukas Böger
9fab5cf4dd
generate and add clibs.c only for static builds
2021-07-13 14:03:24 +01:00
Lukas Böger
5402d86323
remove trailing whitespace
2021-07-13 14:03:24 +01:00
Lukas Böger
7c46c618d0
don't build bootstrap exec by default
...
This doesn't necessarily have an effect though, as we need the
bootstrapping executable anyhow for building other targets.
2021-07-13 14:03:24 +01:00
Lukas Böger
f6e67edf01
export compilation database
2021-07-13 14:03:24 +01:00
Lukas Böger
4cc384ecac
use VERSION file for project settings and lib output
2021-07-13 14:03:24 +01:00
Lukas Böger
b603e04d9e
align library name with build artifact
2021-07-13 14:03:24 +01:00
Lukas Böger
76bce1ce1c
prefer CMake's builtin BUILD_SHARED_LIBS option
2021-07-13 14:03:23 +01:00
Lukas Böger
eb6c9db857
use unversioned library basename
2021-07-13 14:03:23 +01:00
Lukas Böger
c79145b051
require CMake version >= 3.12
2021-07-13 14:03:23 +01:00
okuoku
753e9e89d1
(chibi pty): Disable in CMake build
...
Disable `(chibi pty)` build with CMake.
2019-08-24 07:08:47 +09:00
okuoku
205bda5ab4
cmake: Support shared-library builds
...
Support shared-library (DLL on Win32) builds and defaults on it.
2019-06-23 05:46:25 +09:00
okuoku
432b763555
cmake: Use SEXP_64BIT on Win64
...
Do not override SEXP_64BIT on Win64 as now we have custom-long-long for
it.
2018-06-20 21:16:40 +09:00
Alex Shinn
bf4760fa46
skip chibi log tests in windows
2018-01-13 10:57:44 +09:00
okuoku
98d73d0da2
cmake: Exclude (chibi process) test on CTest
...
(chibi process) is not implemented on Win32.
2017-12-31 07:32:22 +09:00
okuoku
3ea5b51c6c
cmake: Remove debug messages
2017-12-31 07:32:22 +09:00
okuoku
daaf011bbd
cmake: Autodetect library tests
2017-12-14 19:20:21 +09:00
okuoku
2763f8a201
cmake: Add CMakeLists.txt
...
This CMakeLists.txt only meant for Win32 MSVC builds.
For POSIX platforms, it is recommended using Makefile.
2017-11-18 16:28:31 +09:00