annotate extern/cppformat/CMakeLists.txt @ 189:bb70bb9e41eb

Irccd: use native Duktape API
author David Demelier <markand@malikania.fr>
date Fri, 03 Jun 2016 13:28:10 +0200
parents ff26bd33a45d
children 6635b9187d71
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
104
be4b9ed19a17 Irccd: import cppformat, #483
David Demelier <markand@malikania.fr>
parents:
diff changeset
1 #
be4b9ed19a17 Irccd: import cppformat, #483
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 # CMakeLists.txt -- CMake build system for cppformat
be4b9ed19a17 Irccd: import cppformat, #483
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 #
be4b9ed19a17 Irccd: import cppformat, #483
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 # Copyright (c) 2016 David Demelier <markand@malikania.fr>
be4b9ed19a17 Irccd: import cppformat, #483
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 #
be4b9ed19a17 Irccd: import cppformat, #483
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # Permission to use, copy, modify, and/or distribute this software for any
be4b9ed19a17 Irccd: import cppformat, #483
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # purpose with or without fee is hereby granted, provided that the above
be4b9ed19a17 Irccd: import cppformat, #483
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 # copyright notice and this permission notice appear in all copies.
be4b9ed19a17 Irccd: import cppformat, #483
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 #
be4b9ed19a17 Irccd: import cppformat, #483
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
be4b9ed19a17 Irccd: import cppformat, #483
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
be4b9ed19a17 Irccd: import cppformat, #483
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
be4b9ed19a17 Irccd: import cppformat, #483
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
be4b9ed19a17 Irccd: import cppformat, #483
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
be4b9ed19a17 Irccd: import cppformat, #483
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
be4b9ed19a17 Irccd: import cppformat, #483
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
be4b9ed19a17 Irccd: import cppformat, #483
David Demelier <markand@malikania.fr>
parents:
diff changeset
17 #
be4b9ed19a17 Irccd: import cppformat, #483
David Demelier <markand@malikania.fr>
parents:
diff changeset
18
be4b9ed19a17 Irccd: import cppformat, #483
David Demelier <markand@malikania.fr>
parents:
diff changeset
19 cmake_minimum_required(VERSION 3.0)
be4b9ed19a17 Irccd: import cppformat, #483
David Demelier <markand@malikania.fr>
parents:
diff changeset
20 project(cppformat)
138
ff26bd33a45d CMake: improve VS2015 support, #425
David Demelier <markand@malikania.fr>
parents: 104
diff changeset
21 add_library(extern-cppformat STATIC format.cc format.h)
ff26bd33a45d CMake: improve VS2015 support, #425
David Demelier <markand@malikania.fr>
parents: 104
diff changeset
22 target_include_directories(extern-cppformat PUBLIC ${cppformat_SOURCE_DIR})
ff26bd33a45d CMake: improve VS2015 support, #425
David Demelier <markand@malikania.fr>
parents: 104
diff changeset
23 set_target_properties(
ff26bd33a45d CMake: improve VS2015 support, #425
David Demelier <markand@malikania.fr>
parents: 104
diff changeset
24 extern-cppformat
ff26bd33a45d CMake: improve VS2015 support, #425
David Demelier <markand@malikania.fr>
parents: 104
diff changeset
25 PROPERTIES
ff26bd33a45d CMake: improve VS2015 support, #425
David Demelier <markand@malikania.fr>
parents: 104
diff changeset
26 PROJECT_LABEL cppformat
ff26bd33a45d CMake: improve VS2015 support, #425
David Demelier <markand@malikania.fr>
parents: 104
diff changeset
27 FOLDER extern
ff26bd33a45d CMake: improve VS2015 support, #425
David Demelier <markand@malikania.fr>
parents: 104
diff changeset
28 )