Sha256: b0bdf7d1ce6e8b472487b49fea9458380a01ce55dfea310d98e050b2666eeafb

Contents?: true

Size: 1.33 KB

Versions: 150

Compression:

Stored size: 1.33 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
    pangram
)
    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

150 entries across 150 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/cpp/CMakeLists.txt
trackler-2.2.1.179 tracks/cpp/CMakeLists.txt
trackler-2.2.1.178 tracks/cpp/CMakeLists.txt
trackler-2.2.1.177 tracks/cpp/CMakeLists.txt
trackler-2.2.1.176 tracks/cpp/CMakeLists.txt
trackler-2.2.1.175 tracks/cpp/CMakeLists.txt
trackler-2.2.1.174 tracks/cpp/CMakeLists.txt
trackler-2.2.1.173 tracks/cpp/CMakeLists.txt
trackler-2.2.1.172 tracks/cpp/CMakeLists.txt
trackler-2.2.1.171 tracks/cpp/CMakeLists.txt
trackler-2.2.1.170 tracks/cpp/CMakeLists.txt
trackler-2.2.1.169 tracks/cpp/CMakeLists.txt
trackler-2.2.1.167 tracks/cpp/CMakeLists.txt
trackler-2.2.1.166 tracks/cpp/CMakeLists.txt
trackler-2.2.1.165 tracks/cpp/CMakeLists.txt
trackler-2.2.1.164 tracks/cpp/CMakeLists.txt
trackler-2.2.1.163 tracks/cpp/CMakeLists.txt
trackler-2.2.1.162 tracks/cpp/CMakeLists.txt
trackler-2.2.1.161 tracks/cpp/CMakeLists.txt
trackler-2.2.1.160 tracks/cpp/CMakeLists.txt