Commit 12bd0899 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

CMakeFiles: minor tweaks

Remove forced debug flag, let cmake add it if we build in debug mode
Add pedantic warning flag
parent 5b73b16e
......@@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 2.8)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
EnableCpp11()
add_definitions("-Wall -Wextra -pedantic -O0")
add_definitions("-Wall -Wextra -pedantic")
list(APPEND HEADERS_LIST
${CMAKE_SOURCE_DIR}/include/IShow.h
......@@ -51,4 +51,3 @@ include_directories(${LIBVLC_INCLUDE_DIR})
find_package(vlcpp 2.2.0 REQUIRED)
target_link_libraries( ${PROJECT_NAME} ${LIBVLCPP_LIBRARIES})
include_directories(${LIBVLCPP_INCLUDE_DIR})
......@@ -26,8 +26,8 @@ ExternalProject_Get_Property(gtest-dependency binary_dir)
link_directories(${binary_dir})
EnableCpp11()
add_definitions("-g")
add_definitions("-Wall -Wextra")
add_definitions("-Wall -Wextra -pedantic")
include_directories(${CMAKE_SOURCE_DIR}/include)
include_directories(${CMAKE_SOURCE_DIR}/src)
include_directories(${LIBVLC_INCLUDE_DIR})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment