Locally maintained version of the FieldSystem VEX parser as separate project
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.
 
 
 

28 lines
710 B

  1. project(myvex)
  2. cmake_minimum_required (VERSION 2.6.0)
  3. include(CheckCXXCompilerFlag)
  4. set(PROJECT_VERSION_MAJOR 0)
  5. set(PROJECT_VERSION_MINOR 1)
  6. set(PROJECT_VERSION_PATCH 0)
  7. set(PROJECT_VERSION_REVISION 0)
  8. set(PROJECT_VERSION
  9. "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
  10. #set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
  11. # Set policy to require CMakeLists.txt in every source directory
  12. cmake_policy(SET CMP0014 NEW)
  13. # We require BISON and FLEX
  14. find_package(BISON)
  15. find_package(FLEX)
  16. # Make gcc not warn about implicit fall through
  17. SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-implicit-fallthrough")
  18. # include source directory for library target 'vex'
  19. add_subdirectory(src)