mpw/CMakeLists.txt

35 lines
733 B
CMake
Raw Normal View History

2017-10-02 19:11:28 +00:00
cmake_minimum_required(VERSION 3.1)
project(mpw VERSION 0.8.3 LANGUAGES CXX C)
2013-02-06 04:41:11 +00:00
2017-10-02 19:11:28 +00:00
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
set(CMAKE_CXX_EXTENSIONS FALSE)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED TRUE)
set(CMAKE_C_EXTENSIONS FALSE)
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
# Clang or AppleClang
set(CMAKE_CXX_FLAGS "-Wall")
set(CMAKE_C_FLAGS "-Wall")
endif()
find_program(RAGEL NAMES ragel)
if (NOT RAGEL)
message(FATAL_ERROR "ragel (version 6) is required.")
endif()
2017-10-02 19:11:28 +00:00
include_directories("${CMAKE_SOURCE_DIR}")
2013-02-06 04:41:11 +00:00
add_subdirectory(bin)
2013-02-07 04:44:12 +00:00
add_subdirectory(cpu)
2013-02-08 00:47:49 +00:00
add_subdirectory(toolbox)
2013-02-11 01:18:47 +00:00
add_subdirectory(mplite)
add_subdirectory(mpw)
2013-03-04 03:17:27 +00:00
add_subdirectory(macos)
2017-04-27 21:25:09 +00:00
add_subdirectory(libsane)