Sha256: a796e80518a65d222a5595ef5db69b47705d1c7f6408e96ccb2cdbc696f4e0a4
Contents?: true
Size: 1.21 KB
Versions: 73
Compression:
Stored size: 1.21 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}/${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 ) travis_fixup(${exercise}) execute_process( COMMAND ${CMAKE_COMMAND} -DEXERCISM_RUN_ALL_TESTS:BOOL=1 -G ${CMAKE_GENERATOR} . WORKING_DIRECTORY ${exercise}) add_custom_target(${exercise} ALL COMMAND ${CMAKE_COMMAND} --build . WORKING_DIRECTORY ${exercise}) endforeach()
Version data entries
73 entries across 73 versions & 1 rubygems