cmake_minimum_required(VERSION 2.0)
project(user_thread)

set(CMAKE_VERBOSE_MAKEFILE TRUE)

set(CMAKE_CXX_FLAGS "-Wall")
# set(CMAKE_CXX_FLAGS_DEBUG "-g")
# set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG -march=native")
# set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g3 -Og -pg")
# set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG -march=native")

set(CMAKE_CXX_STANDARD 14)
include_directories("include")
add_subdirectory(src)
add_subdirectory(googletest)
add_subdirectory(test)
add_subdirectory(sample)



cmake_minimum_required(VERSION 2.0)
project(user_thread)

set(CMAKE_VERBOSE_MAKEFILE TRUE)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")

# set(CMAKE_CXX_FLAGS_DEBUG "-g")
# set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG -march=native")
# set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g3 -Og -pg")
# set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG -march=native")

set(CMAKE_CXX_STANDARD 14)
include_directories("include")
add_subdirectory(src)
add_subdirectory(googletest)
add_subdirectory(test)
add_subdirectory(sample)



Make cmake be able to add compiler flags
Make cmake be able to add compiler flags

usage:
CXXFLAGS=-march=native cmake .
