Skip to content

Commit

Permalink
Merge branch 'compiler'
Browse files Browse the repository at this point in the history
  • Loading branch information
256dpi committed Oct 24, 2017
2 parents 121ee17 + 63f9635 commit 9b50975
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
cmake_minimum_required(VERSION 2.8.7)
cmake_minimum_required(VERSION 3.2.0)
project(lwmqtt)

add_subdirectory(gtest/googletest)
include_directories(gtest/googletest/include)

set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 11)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wpedantic -Werror -Wno-unused-parameter")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -Werror -Wno-unused-parameter")

if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c1x -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
else()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
endif()

include_directories(include)

set(SOURCE_FILES
Expand Down

0 comments on commit 9b50975

Please sign in to comment.