Commit Graph

19 Commits

Author SHA1 Message Date
8f04b266f5 Create package export file
The package export file allows CMake consumers to find Squirrel by
calling find_package(squirrel). This will create imported targets
for them to link against.

Create export files in both the build directory and the install
directory.
2019-07-29 22:13:13 -04:00
91bb6b28fd Make various improvements to the CMake scripts
Set minimum required to 3.4 across the board. Use standard
GNUInstallDirs variables instead of custom INSTALL_BIN_DIR and
INSTALL_LIB_DIR. Use generator expressions and commands instead of
variables when possible. Use Runtime, Development, and Libraries
components in the installation. Set up the layout of the build tree
to match the installation tree. Replace compiler-specific flags with
more general cross-platform settings when possible. Update COMPILE
with new configure and install instructions. Add alias targets.
2019-07-29 22:13:13 -04:00
4ccc03fbac CMake: properly check for variables
Checking them for being defined would get the user intention wrong if they are
passed as -DDISABLE_STATIC=Off as that would still count as being defined. Just
check for the variable, which has the desired effect. An unset variable is
always false. Since these flags are options now the variables are always set,
so one cannot disable this features anymore otherwise.
2018-07-04 18:53:21 +02:00
c62aacd250 Fix gcc warning by setting the C lang version 2017-03-29 14:00:13 +01:00
aa4afc5b14 Allow disable of CMake install() sections 2017-03-27 21:08:56 +01:00
d130dc5471 Add DISABLE_DYNAMIC to disable building shared libs for the case where you only want static libs. 2017-02-25 14:40:47 +00:00
2e346b54ac FIX: no warnings on unused arguments on non-gnu compilers 2016-06-08 21:08:38 +02:00
14ac45d285 Fix minor spelling mistakes 2016-04-03 17:48:40 +02:00
ba57d3b592 Add option to disable static targets 2016-03-17 12:44:03 +01:00
89b5c519af Improve Linux build 2016-03-16 00:01:16 +01:00
2592e50f83 Implement more flexible installation 2016-03-13 14:36:10 +01:00
dc4eb2ad3e Fix DLL installation with MSVC 2016-03-08 14:48:19 +01:00
d9ce07f065 Merge branch master 2016-03-08 13:59:33 +01:00
2fb3522470 Various improvements 2016-03-06 19:43:57 +01:00
6dee69057e Silence all -Wunused-parameter warnings. 2016-03-06 16:15:13 +01:00
026671b3d5 Silence some pedantic compilation warnings. 2016-03-06 15:49:46 +01:00
0378c7016f Normalize whitespace.
Convert files to Unix EOL mode, de-tabify and strip trailing whitespace.
2016-02-15 20:51:20 +01:00
0568675561 switch to CMake build system 2016-02-02 23:25:37 +01:00
85dfe4b676 first commit 2015-12-22 03:14:21 +08:00