Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

21 lines (15 sloc) 631 Bytes
cmake_minimum_required(VERSION 3.10.2)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
# Disable test compilation for the optional tl library.
set(OPTIONAL_ENABLE_TESTS OFF CACHE INTERNAL "Enable tl::optional tests")
include_directories(includes)
add_subdirectory(external/Catch2)
add_subdirectory(external/cppast)
add_subdirectory(external/optional)
add_executable(asgn1 src/asgn1/main.cpp)
target_link_libraries(asgn1 Catch2)
add_executable(asgn2 src/asgn2/main.cpp)
target_link_libraries(asgn2 Catch2 cppast optional)
You can’t perform that action at this time.