add compile flags example

This commit is contained in:
ttroy50
2015-11-22 23:40:53 +00:00
parent c4ba12d192
commit 43965819c4
6 changed files with 157 additions and 10 deletions

View File

@@ -0,0 +1,10 @@
cmake_minimum_required(VERSION 2.6)
# Set a default C++ compile flag
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DEX2" CACHE STRING "Set C++ Compiler Flags" FORCE)
# Set the project name
project (compile_flags)
# Add an executable
add_executable(cmake_examples_compile_flags main.cpp)