You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
494 B

  1. cmake_minimum_required(VERSION 2.6)
  2. cmake_policy(SET CMP0054 OLD)
  3. PROJECT( cpphoaf )
  4. INCLUDE_DIRECTORIES("../include")
  5. IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR
  6. "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
  7. IF ("${CMAKE_CXX_FLAGS}" STREQUAL "")
  8. # Only set flags if there has been no flag set
  9. SET (CMAKE_CXX_FLAGS "-std=c++11 -Wall" CACHE STRING "Flags used by the compiler during all build types." FORCE)
  10. ENDIF()
  11. ENDIF()
  12. ADD_EXECUTABLE ( cpphoaf cpphoaf.cc )