comparison extern/gtest/CMakeLists.txt @ 413:9bc2da03dbe1 stable-2

Merge from default
author David Demelier <markand@malikania.fr>
date Wed, 01 Feb 2017 11:41:18 +0100
parents c6fbb6e0e06d
children
comparison
equal deleted inserted replaced
287:e27204f923e9 413:9bc2da03dbe1
1 # 1 #
2 # CMakeLists.txt -- CMake build system for irccd 2 # CMakeLists.txt -- CMake build system for irccd
3 # 3 #
4 # Copyright (c) 2013-2016 David Demelier <markand@malikania.fr> 4 # Copyright (c) 2013-2017 David Demelier <markand@malikania.fr>
5 # 5 #
6 # Permission to use, copy, modify, and/or distribute this software for any 6 # Permission to use, copy, modify, and/or distribute this software for any
7 # purpose with or without fee is hereby granted, provided that the above 7 # purpose with or without fee is hereby granted, provided that the above
8 # copyright notice and this permission notice appear in all copies. 8 # copyright notice and this permission notice appear in all copies.
9 # 9 #
17 # 17 #
18 18
19 project(gtest) 19 project(gtest)
20 20
21 irccd_define_library( 21 irccd_define_library(
22 TARGET extern-gtest 22 LOCAL
23 SOURCES src/gtest-all.cc 23 TARGET extern-gtest
24 PUBLIC_INCLUDES ${gtest_SOURCE_DIR}/include 24 SOURCES src/gtest-all.cc
25 LOCAL_INCLUDES ${gtest_SOURCE_DIR} 25 PUBLIC_INCLUDES ${gtest_SOURCE_DIR}/include
26 LOCAL_INCLUDES ${gtest_SOURCE_DIR}
26 ) 27 )
27 28
28 if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU") 29 if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
29 target_compile_options(extern-gtest PRIVATE -Wno-missing-field-initializers) 30 target_compile_options(extern-gtest PRIVATE -Wno-missing-field-initializers)
30 endif () 31 endif ()
32
33 set_target_properties(
34 extern-gtest
35 PROPERTIES
36 PROJECT_LABEL gtest
37 FOLDER extern
38 )