Skip to content
Permalink
cc8d7dad13
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
20 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)