Add proper build system

This commit is contained in:
Jonathan Müller 2017-04-02 18:37:57 +02:00
commit e10a41fea8
14 changed files with 331 additions and 9 deletions

17
CMakeLists.txt Normal file
View file

@ -0,0 +1,17 @@
# Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
# This file is subject to the license terms in the LICENSE file
# found in the top-level directory of this distribution.
cmake_minimum_required(VERSION 3.3)
project(cppast VERSION 0.0)
# options
option(CPPAST_BUILD_TEST "whether or not to build the tests" ON)
include(external/external.cmake)
add_subdirectory(src)
if(CPPAST_BUILD_TEST)
add_subdirectory(test)
endif()