cmake_minimum_required(VERSION 3.13) # see https://vcpkg.io/en/docs/users/buildsystems/cmake-integration.html#visual-studio if using visual studio # vcpkg install benchmark for benchmark (Windows) # sudo dnf install "pkgconfig(benchmark)" (Fedora, you'll also need g++ and cmake) # sudo apt install libbenchmark-dev (Ubuntu, you'll also need cmake and build-essential) # ?? Mac project(comp290_worksheets) set(CMAKE_CXX_STANDARD 17) # Sorting lab script add_executable(sorting ${SOURCE_FILES}) target_include_directories(sorting PRIVATE include) target_sources(sorting PRIVATE labs/sorting/main.cpp labs/sorting/lab1.cpp ) add_subdirectory(tests/labs) # Counting lab script add_executable(counting) target_include_directories(counting PRIVATE include) target_sources(counting PRIVATE labs/counting/main.cpp labs/counting/lab2.cpp ) add_custom_command( TARGET counting COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/labs/counting/generate.py WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )