Sha256: afbfa915fa7374bfebb22da40a8230ade582e8c6845fe22ba53250492749d0b9

Contents?: true

Size: 1.32 KB

Versions: 32

Compression:

Stored size: 1.32 KB

Contents

cmake_minimum_required(VERSION 2.8.11)
project(exercism CXX)

function(travis_fixup dir)
    string(REPLACE "-" "_" file ${dir})
    set(subdir ${CMAKE_CURRENT_SOURCE_DIR}/exercises/${dir})
    if(EXISTS ${subdir}/example.h)
        file(RENAME ${subdir}/example.h ${subdir}/${file}.h)
    endif()
    if(EXISTS ${subdir}/example.cpp)
        file(RENAME ${subdir}/example.cpp ${subdir}/${file}.cpp)
    endif()
endfunction()

foreach(exercise
    bob
    word-count
    hamming
    anagram
    food-chain
    beer-song
    nucleotide-count
    rna-transcription
    phone-number
    grade-school
    robot-name
    leap
    etl
    space-age
    grains
    gigasecond
    triangle
    clock
    raindrops
    difference-of-squares
    roman-numerals
    nth-prime
    sieve
    binary
    sum-of-multiples
    series
    prime-factors
    trinary
    crypto-square
    scrabble-score
    hexadecimal
    say
    meetup
    queen-attack
    allergies
    atbash-cipher
    bracket-push
)
    set(exercise_dir exercises/${exercise})
    travis_fixup(${exercise})
    execute_process(
        COMMAND ${CMAKE_COMMAND} -DEXERCISM_RUN_ALL_TESTS:BOOL=1 -G ${CMAKE_GENERATOR} .
        WORKING_DIRECTORY ${exercise_dir})
    add_custom_target(${exercise} ALL
        COMMAND ${CMAKE_COMMAND} --build .
        WORKING_DIRECTORY ${exercise_dir})
endforeach()

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
trackler-2.2.1.28 tracks/cpp/CMakeLists.txt
trackler-2.2.1.27 tracks/cpp/CMakeLists.txt
trackler-2.2.1.26 tracks/cpp/CMakeLists.txt
trackler-2.2.1.25 tracks/cpp/CMakeLists.txt
trackler-2.2.1.24 tracks/cpp/CMakeLists.txt
trackler-2.2.1.23 tracks/cpp/CMakeLists.txt
trackler-2.2.1.22 tracks/cpp/CMakeLists.txt
trackler-2.2.1.21 tracks/cpp/CMakeLists.txt
trackler-2.2.1.20 tracks/cpp/CMakeLists.txt
trackler-2.2.1.19 tracks/cpp/CMakeLists.txt
trackler-2.2.1.18 tracks/cpp/CMakeLists.txt
trackler-2.2.1.17 tracks/cpp/CMakeLists.txt
trackler-2.2.1.16 tracks/cpp/CMakeLists.txt
trackler-2.2.1.15 tracks/cpp/CMakeLists.txt
trackler-2.2.1.14 tracks/cpp/CMakeLists.txt
trackler-2.2.1.13 tracks/cpp/CMakeLists.txt
trackler-2.2.1.12 tracks/cpp/CMakeLists.txt
trackler-2.2.1.11 tracks/cpp/CMakeLists.txt
trackler-2.2.1.10 tracks/cpp/CMakeLists.txt
trackler-2.2.1.9 tracks/cpp/CMakeLists.txt