This repository has been archived on 2023-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
plasp/CMakeLists.txt

21 lines
587 B
CMake
Raw Normal View History

2016-05-20 15:29:24 +02:00
cmake_minimum_required(VERSION 2.6)
project(plasp CXX)
find_package(Boost 1.55.0 COMPONENTS program_options iostreams system filesystem REQUIRED)
2016-06-08 00:13:07 +02:00
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wpedantic")
2016-05-20 15:29:24 +02:00
set(CMAKE_CXX_FLAGS_DEBUG "-g")
add_definitions(-std=c++14)
2016-08-15 00:25:37 +02:00
option(BUILD_TESTS "Build unit tests" OFF)
2016-05-20 15:29:24 +02:00
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
add_subdirectory(src)
add_subdirectory(apps)
2016-05-20 18:46:37 +02:00
if(BUILD_TESTS)
add_subdirectory(tests)
endif(BUILD_TESTS)