Mercurial > molko
annotate extern/libsqlite/CMakeLists.txt @ 221:d51d9c0c2186
misc: some cleanup
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 18 Nov 2020 15:19:25 +0100 |
parents | 82fd79d5019e |
children | 9bbbabb6f077 |
rev | line source |
---|---|
116
0a6683615c73
cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
1 # |
0a6683615c73
cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
2 # CMakeLists.txt -- CMake build system for libsqlite |
0a6683615c73
cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
3 # |
0a6683615c73
cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
4 # Copyright (c) 2020 David Demelier <markand@malikania.fr> |
0a6683615c73
cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
5 # |
0a6683615c73
cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
6 # Permission to use, copy, modify, and/or distribute this software for any |
0a6683615c73
cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
7 # purpose with or without fee is hereby granted, provided that the above |
0a6683615c73
cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
8 # copyright notice and this permission notice appear in all copies. |
0a6683615c73
cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
9 # |
0a6683615c73
cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
10 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
0a6683615c73
cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
11 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
0a6683615c73
cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
12 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
0a6683615c73
cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
13 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
0a6683615c73
cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
14 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
0a6683615c73
cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
15 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
0a6683615c73
cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
16 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
0a6683615c73
cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
17 # |
0a6683615c73
cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
18 |
0a6683615c73
cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
19 project(libsqlite) |
118
3411daa26432
cmake: create macros for building assets, continue #2487 @1h
David Demelier <markand@malikania.fr>
parents:
116
diff
changeset
|
20 |
3411daa26432
cmake: create macros for building assets, continue #2487 @1h
David Demelier <markand@malikania.fr>
parents:
116
diff
changeset
|
21 molko_define_library( |
3411daa26432
cmake: create macros for building assets, continue #2487 @1h
David Demelier <markand@malikania.fr>
parents:
116
diff
changeset
|
22 TARGET libsqlite |
3411daa26432
cmake: create macros for building assets, continue #2487 @1h
David Demelier <markand@malikania.fr>
parents:
116
diff
changeset
|
23 SOURCES sqlite3.c sqlite3.h |
221 | 24 EXTERNAL |
121
789b23e01f52
misc: reorganize hierarchy, closes #2490
David Demelier <markand@malikania.fr>
parents:
118
diff
changeset
|
25 FOLDER extern |
214
82fd79d5019e
extern: FLAGS isn't a valid option
David Demelier <markand@malikania.fr>
parents:
213
diff
changeset
|
26 PUBLIC_FLAGS |
202
baf7e6575181
extern: add some flags to sqlite
David Demelier <markand@malikania.fr>
parents:
194
diff
changeset
|
27 SQLITE_THREADSAFE=0 |
baf7e6575181
extern: add some flags to sqlite
David Demelier <markand@malikania.fr>
parents:
194
diff
changeset
|
28 SQLITE_DEFAULT_MEMSTATUS=0 |
baf7e6575181
extern: add some flags to sqlite
David Demelier <markand@malikania.fr>
parents:
194
diff
changeset
|
29 SQLITE_DEFAULT_FOREIGN_KEYS=1 |
baf7e6575181
extern: add some flags to sqlite
David Demelier <markand@malikania.fr>
parents:
194
diff
changeset
|
30 SQLITE_OMIT_DEPRECATED |
213
8d4b9003f8d5
extern: disable dlopen routines in libsqlite
David Demelier <markand@malikania.fr>
parents:
202
diff
changeset
|
31 SQLITE_OMIT_LOAD_EXTENSION |
202
baf7e6575181
extern: add some flags to sqlite
David Demelier <markand@malikania.fr>
parents:
194
diff
changeset
|
32 $<$<CONFIG:Debug>:SQLITE_DEBUG> |
baf7e6575181
extern: add some flags to sqlite
David Demelier <markand@malikania.fr>
parents:
194
diff
changeset
|
33 $<$<CONFIG:Debug>:SQLITE_MEMDEBUG> |
118
3411daa26432
cmake: create macros for building assets, continue #2487 @1h
David Demelier <markand@malikania.fr>
parents:
116
diff
changeset
|
34 PUBLIC_INCLUDES |
116
0a6683615c73
cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
35 $<BUILD_INTERFACE:${libsqlite_SOURCE_DIR}> |
0a6683615c73
cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
36 $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> |
0a6683615c73
cmake: change build system, continue #2487 @3h
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
37 ) |