mpw/CMakeLists.txt

39 lines
861 B
CMake
Raw Normal View History

2017-10-02 15:11:28 -04:00
cmake_minimum_required(VERSION 3.1)
project(mpw VERSION 0.8.3 LANGUAGES CXX C)
2013-02-05 23:41:11 -05:00
2017-10-02 15:11:28 -04: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 ${CMAKE_CXX_FLAGS}")
endif()
if ("${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
2017-10-02 15:11:28 -04:00
# Clang or AppleClang
set(CMAKE_C_FLAGS "-Wall ${CMAKE_C_FLAGS}")
2017-10-02 15:11:28 -04:00
endif()
find_program(RAGEL NAMES ragel)
if (NOT RAGEL)
message(FATAL_ERROR "ragel (version 6) is required.")
endif()
2017-10-02 15:11:28 -04:00
include_directories("${CMAKE_SOURCE_DIR}")
2013-02-05 23:41:11 -05:00
add_subdirectory(bin)
2013-02-06 23:44:12 -05:00
add_subdirectory(cpu)
2013-02-07 19:47:49 -05:00
add_subdirectory(toolbox)
2013-02-10 20:18:47 -05:00
add_subdirectory(mplite)
add_subdirectory(mpw)
2013-03-03 22:17:27 -05:00
add_subdirectory(macos)
2017-04-27 17:25:09 -04:00
add_subdirectory(libsane)