Clean up CMakeLists.txt.

This commit is contained in:
Michał Słomkowski 2015-11-04 01:02:17 +01:00
parent 5e060ead33
commit 8d551006cc

View File

@ -1,13 +1,12 @@
cmake_minimum_required(VERSION 3.1.1) cmake_minimum_required(VERSION 3.0.1)
project(libmumble) project(mumlib)
list(APPEND CMAKE_C_FLAGS " -std=c99 -g -Wall -pedantic ${CMAKE_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
add_definitions(-DOPT_TLS_GNUTLS -D_POSIX_C_SOURCE=200112L) add_definitions(-DOPT_TLS_GNUTLS -D_POSIX_C_SOURCE=200112L)
INCLUDE(FindPkgConfig) INCLUDE(FindPkgConfig)
find_package(PkgConfig REQUIRED) find_package(PkgConfig REQUIRED)
find_package(Boost COMPONENTS system unit_test_framework program_options filesystem REQUIRED) find_package(Boost COMPONENTS system REQUIRED)
find_package(OpenSSL REQUIRED) find_package(OpenSSL REQUIRED)
find_package(Protobuf REQUIRED) find_package(Protobuf REQUIRED)