Files
cmake-examples/01-basic/G-compile-flags/CMakeLists.txt
2015-11-22 23:40:53 +00:00

11 lines
286 B
CMake

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)