Skip to content

Commit

Permalink
Fix CMakeLists.txt indentation to make CLion happy
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar committed Nov 30, 2016
1 parent 189b173 commit f228f2b
Showing 1 changed file with 173 additions and 173 deletions.
346 changes: 173 additions & 173 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ find_package(Threads REQUIRED)
include(ExternalProject)

ExternalProject_Add(googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG release-1.8.0
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/googletest
CMAKE_ARGS ${CMAKE_ARGS} -DBUILD_GTEST=ON -DBUILD_GMOCK=ON -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
INSTALL_COMMAND ""
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG release-1.8.0
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/googletest
CMAKE_ARGS ${CMAKE_ARGS} -DBUILD_GTEST=ON -DBUILD_GMOCK=ON -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
INSTALL_COMMAND ""
)

ExternalProject_Get_Property(googletest source_dir binary_dir)
Expand All @@ -23,14 +23,14 @@ add_library(gtest IMPORTED STATIC GLOBAL)
add_library(gmock IMPORTED STATIC GLOBAL)

set_target_properties(
gtest PROPERTIES
"IMPORTED_LOCATION" "${binary_dir}/googlemock/gtest/libgtest.a"
"IMPORTED_LINK_INTERFACE_LIBRARIES" "${CMAKE_THREAD_LIBS_INIT}"
gtest PROPERTIES
"IMPORTED_LOCATION" "${binary_dir}/googlemock/gtest/libgtest.a"
"IMPORTED_LINK_INTERFACE_LIBRARIES" "${CMAKE_THREAD_LIBS_INIT}"
)
set_target_properties(
gmock PROPERTIES
"IMPORTED_LOCATION" "${binary_dir}/googlemock/libgmock_main.a"
"IMPORTED_LINK_INTERFACE_LIBRARIES" "${CMAKE_THREAD_LIBS_INIT}"
gmock PROPERTIES
"IMPORTED_LOCATION" "${binary_dir}/googlemock/libgmock_main.a"
"IMPORTED_LINK_INTERFACE_LIBRARIES" "${CMAKE_THREAD_LIBS_INIT}"
)

add_dependencies(gtest googletest)
Expand All @@ -42,183 +42,183 @@ include_directories("${source_dir}/googlemock/include")
include_directories(include)

set(SOURCES
include/tcframe/evaluator.hpp
include/tcframe/evaluator/BatchEvaluator.hpp
include/tcframe/evaluator/EvaluationResult.hpp
include/tcframe/evaluator/Evaluator.hpp
include/tcframe/evaluator/EvaluatorConfig.hpp
include/tcframe/generator.hpp
include/tcframe/generator/GenerationException.hpp
include/tcframe/generator/Generator.hpp
include/tcframe/generator/GeneratorConfig.hpp
include/tcframe/generator/GeneratorLogger.hpp
include/tcframe/generator/TestCaseGenerator.hpp
include/tcframe/grader.hpp
include/tcframe/grader/Grader.hpp
include/tcframe/grader/GraderConfig.hpp
include/tcframe/grader/GraderLogger.hpp
include/tcframe/grader/TestCaseGrader.hpp
include/tcframe/io_manipulator.hpp
include/tcframe/io_manipulator/GridIOSegmentManipulator.hpp
include/tcframe/io_manipulator/IOManipulator.hpp
include/tcframe/io_manipulator/LineIOSegmentManipulator.hpp
include/tcframe/io_manipulator/LinesIOSegmentManipulator.hpp
include/tcframe/logger.hpp
include/tcframe/logger/BaseLogger.hpp
include/tcframe/logger/LoggerEngine.hpp
include/tcframe/logger/SimpleLoggerEngine.hpp
include/tcframe/os.hpp
include/tcframe/os/ExecutionInfo.hpp
include/tcframe/os/ExecutionResult.hpp
include/tcframe/os/ExecutionRequest.hpp
include/tcframe/os/OperatingSystem.hpp
include/tcframe/os/UnixOperatingSystem.hpp
include/tcframe/runner.hpp
include/tcframe/runner/Args.hpp
include/tcframe/runner/ArgsParser.hpp
include/tcframe/runner/Runner.hpp
include/tcframe/runner/RunnerLogger.hpp
include/tcframe/runner/RunnerLoggerFactory.hpp
include/tcframe/runner/SlugParser.hpp
include/tcframe/scorer.hpp
include/tcframe/scorer/DiffScorer.hpp
include/tcframe/scorer/Scorer.hpp
include/tcframe/scorer/ScoringResult.hpp
include/tcframe/spec.hpp
include/tcframe/spec/constraint.hpp
include/tcframe/spec/constraint/Constraint.hpp
include/tcframe/spec/constraint/ConstraintSuite.hpp
include/tcframe/spec/constraint/Subtask.hpp
include/tcframe/spec/Spec.hpp
include/tcframe/spec/core.hpp
include/tcframe/spec/core/BaseTestSpec.hpp
include/tcframe/spec/core/BaseProblemSpec.hpp
include/tcframe/spec/core/CommonConfig.hpp
include/tcframe/spec/core/GradingConfig.hpp
include/tcframe/spec/core/Magic.hpp
include/tcframe/spec/core/MultipleTestCasesConfig.hpp
include/tcframe/spec/core/SeedSetter.hpp
include/tcframe/spec/io.hpp
include/tcframe/spec/io/GridIOSegment.hpp
include/tcframe/spec/io/IOFormat.hpp
include/tcframe/spec/io/IOSegment.hpp
include/tcframe/spec/io/LineIOSegment.hpp
include/tcframe/spec/io/LinesIOSegment.hpp
include/tcframe/spec/random.hpp
include/tcframe/spec/random/Random.hpp
include/tcframe/spec/testcase.hpp
include/tcframe/spec/testcase/OfficialTestCaseData.hpp
include/tcframe/spec/testcase/SampleTestCaseData.hpp
include/tcframe/spec/testcase/TestCase.hpp
include/tcframe/spec/testcase/TestCaseData.hpp
include/tcframe/spec/testcase/TestCaseIdCreator.hpp
include/tcframe/spec/testcase/TestGroup.hpp
include/tcframe/spec/testcase/TestSuite.hpp
include/tcframe/spec/variable.hpp
include/tcframe/spec/variable/Scalar.hpp
include/tcframe/spec/variable/Matrix.hpp
include/tcframe/spec/variable/TokenFormatter.hpp
include/tcframe/spec/variable/Variable.hpp
include/tcframe/spec/variable/Vector.hpp
include/tcframe/spec/variable/WhitespaceManipulator.hpp
include/tcframe/util.hpp
include/tcframe/util/NotImplementedException.hpp
include/tcframe/util/StringUtils.hpp
include/tcframe/util/optional.hpp
include/tcframe/verdict.hpp
include/tcframe/verdict/Verdict.hpp
include/tcframe/verifier.hpp
include/tcframe/verifier/ConstraintsVerificationResult.hpp
include/tcframe/verifier/MultipleTestCasesConstraintsVerificationResult.hpp
include/tcframe/verifier/Verifier.hpp
test/tcframe/helper.hpp
test/tcframe/mock.hpp
test/tcframe/evaluator/BatchEvaluatorTests.cpp
test/tcframe/evaluator/MockEvaluator.hpp
test/tcframe/generator/GeneratorLoggerTests.cpp
test/tcframe/generator/GeneratorTests.cpp
test/tcframe/generator/MockGenerator.hpp
test/tcframe/generator/MockGeneratorLogger.hpp
test/tcframe/generator/MockTestCaseGenerator.hpp
test/tcframe/generator/TestCaseGeneratorTests.cpp
test/tcframe/io_manipulator/GridIOSegmentManipulatorTests.cpp
test/tcframe/io_manipulator/IOManipulatorTests.cpp
test/tcframe/io_manipulator/LineIOSegmentManipulatorTests.cpp
test/tcframe/io_manipulator/LinesIOSegmentManipulatorTests.cpp
test/tcframe/io_manipulator/MockIOManipulator.hpp
test/tcframe/logger/BaseLogggerTests.cpp
test/tcframe/logger/MockLoggerEngine.hpp
test/tcframe/logger/SimpleLoggerEngineTests.cpp
test/tcframe/os/MockOperatingSystem.hpp
test/tcframe/runner/ArgsParserTests.cpp
test/tcframe/runner/MockRunnerLogger.hpp
test/tcframe/runner/MockRunnerLoggerFactory.hpp
test/tcframe/runner/RunnerTests.cpp
test/tcframe/runner/RunnerLoggerTests.cpp
test/tcframe/runner/SlugParserTests.cpp
test/tcframe/scorer/DiffScorerTests.cpp
test/tcframe/scorer/MockScorer.hpp
test/tcframe/spec/constraint/ConstraintSuiteBuilderTests.cpp
test/tcframe/spec/core/BaseTestSpecTests.cpp
test/tcframe/spec/core/BaseProblemSpecTests.cpp
test/tcframe/spec/core/MagicTests.cpp
test/tcframe/spec/core/MockSeedSetter.hpp
test/tcframe/spec/io/GridIOSegmentBuilderTests.cpp
test/tcframe/spec/io/IOFormatBuilderTests.cpp
test/tcframe/spec/io/LineIOSegmentBuilderTests.cpp
test/tcframe/spec/io/LinesIOSegmentBuilderTests.cpp
test/tcframe/spec/random/RandomTests.cpp
test/tcframe/spec/testcase/TestCaseIdCreatorTests.cpp
test/tcframe/spec/testcase/TestSuiteBuilderTests.cpp
test/tcframe/spec/variable/FakeVariable.hpp
test/tcframe/spec/variable/MatrixTests.cpp
test/tcframe/spec/variable/ScalarTests.cpp
test/tcframe/spec/variable/TokenFormatterTests.cpp
test/tcframe/spec/variable/VariableTests.cpp
test/tcframe/spec/variable/VectorTests.cpp
test/tcframe/spec/variable/WhitespaceManipulatorTests.cpp
test/tcframe/grader/GraderTests.cpp
test/tcframe/grader/GraderLoggerTests.cpp
test/tcframe/grader/MockGrader.hpp
test/tcframe/grader/MockGraderLogger.hpp
test/tcframe/grader/MockTestCaseGrader.hpp
test/tcframe/grader/TestCaseGraderTests.cpp
test/tcframe/util/OptionalTests.cpp
test/tcframe/util/StringUtilsTests.cpp
test/tcframe/util/TestUtils.hpp
test/tcframe/verifier/MockVerifier.hpp
test/tcframe/verifier/VerifierTests.cpp
include/tcframe/evaluator.hpp
include/tcframe/evaluator/BatchEvaluator.hpp
include/tcframe/evaluator/EvaluationResult.hpp
include/tcframe/evaluator/Evaluator.hpp
include/tcframe/evaluator/EvaluatorConfig.hpp
include/tcframe/generator.hpp
include/tcframe/generator/GenerationException.hpp
include/tcframe/generator/Generator.hpp
include/tcframe/generator/GeneratorConfig.hpp
include/tcframe/generator/GeneratorLogger.hpp
include/tcframe/generator/TestCaseGenerator.hpp
include/tcframe/grader.hpp
include/tcframe/grader/Grader.hpp
include/tcframe/grader/GraderConfig.hpp
include/tcframe/grader/GraderLogger.hpp
include/tcframe/grader/TestCaseGrader.hpp
include/tcframe/io_manipulator.hpp
include/tcframe/io_manipulator/GridIOSegmentManipulator.hpp
include/tcframe/io_manipulator/IOManipulator.hpp
include/tcframe/io_manipulator/LineIOSegmentManipulator.hpp
include/tcframe/io_manipulator/LinesIOSegmentManipulator.hpp
include/tcframe/logger.hpp
include/tcframe/logger/BaseLogger.hpp
include/tcframe/logger/LoggerEngine.hpp
include/tcframe/logger/SimpleLoggerEngine.hpp
include/tcframe/os.hpp
include/tcframe/os/ExecutionInfo.hpp
include/tcframe/os/ExecutionResult.hpp
include/tcframe/os/ExecutionRequest.hpp
include/tcframe/os/OperatingSystem.hpp
include/tcframe/os/UnixOperatingSystem.hpp
include/tcframe/runner.hpp
include/tcframe/runner/Args.hpp
include/tcframe/runner/ArgsParser.hpp
include/tcframe/runner/Runner.hpp
include/tcframe/runner/RunnerLogger.hpp
include/tcframe/runner/RunnerLoggerFactory.hpp
include/tcframe/runner/SlugParser.hpp
include/tcframe/scorer.hpp
include/tcframe/scorer/DiffScorer.hpp
include/tcframe/scorer/Scorer.hpp
include/tcframe/scorer/ScoringResult.hpp
include/tcframe/spec.hpp
include/tcframe/spec/constraint.hpp
include/tcframe/spec/constraint/Constraint.hpp
include/tcframe/spec/constraint/ConstraintSuite.hpp
include/tcframe/spec/constraint/Subtask.hpp
include/tcframe/spec/Spec.hpp
include/tcframe/spec/core.hpp
include/tcframe/spec/core/BaseTestSpec.hpp
include/tcframe/spec/core/BaseProblemSpec.hpp
include/tcframe/spec/core/CommonConfig.hpp
include/tcframe/spec/core/GradingConfig.hpp
include/tcframe/spec/core/Magic.hpp
include/tcframe/spec/core/MultipleTestCasesConfig.hpp
include/tcframe/spec/core/SeedSetter.hpp
include/tcframe/spec/io.hpp
include/tcframe/spec/io/GridIOSegment.hpp
include/tcframe/spec/io/IOFormat.hpp
include/tcframe/spec/io/IOSegment.hpp
include/tcframe/spec/io/LineIOSegment.hpp
include/tcframe/spec/io/LinesIOSegment.hpp
include/tcframe/spec/random.hpp
include/tcframe/spec/random/Random.hpp
include/tcframe/spec/testcase.hpp
include/tcframe/spec/testcase/OfficialTestCaseData.hpp
include/tcframe/spec/testcase/SampleTestCaseData.hpp
include/tcframe/spec/testcase/TestCase.hpp
include/tcframe/spec/testcase/TestCaseData.hpp
include/tcframe/spec/testcase/TestCaseIdCreator.hpp
include/tcframe/spec/testcase/TestGroup.hpp
include/tcframe/spec/testcase/TestSuite.hpp
include/tcframe/spec/variable.hpp
include/tcframe/spec/variable/Scalar.hpp
include/tcframe/spec/variable/Matrix.hpp
include/tcframe/spec/variable/TokenFormatter.hpp
include/tcframe/spec/variable/Variable.hpp
include/tcframe/spec/variable/Vector.hpp
include/tcframe/spec/variable/WhitespaceManipulator.hpp
include/tcframe/util.hpp
include/tcframe/util/NotImplementedException.hpp
include/tcframe/util/StringUtils.hpp
include/tcframe/util/optional.hpp
include/tcframe/verdict.hpp
include/tcframe/verdict/Verdict.hpp
include/tcframe/verifier.hpp
include/tcframe/verifier/ConstraintsVerificationResult.hpp
include/tcframe/verifier/MultipleTestCasesConstraintsVerificationResult.hpp
include/tcframe/verifier/Verifier.hpp
test/tcframe/helper.hpp
test/tcframe/mock.hpp
test/tcframe/evaluator/BatchEvaluatorTests.cpp
test/tcframe/evaluator/MockEvaluator.hpp
test/tcframe/generator/GeneratorLoggerTests.cpp
test/tcframe/generator/GeneratorTests.cpp
test/tcframe/generator/MockGenerator.hpp
test/tcframe/generator/MockGeneratorLogger.hpp
test/tcframe/generator/MockTestCaseGenerator.hpp
test/tcframe/generator/TestCaseGeneratorTests.cpp
test/tcframe/io_manipulator/GridIOSegmentManipulatorTests.cpp
test/tcframe/io_manipulator/IOManipulatorTests.cpp
test/tcframe/io_manipulator/LineIOSegmentManipulatorTests.cpp
test/tcframe/io_manipulator/LinesIOSegmentManipulatorTests.cpp
test/tcframe/io_manipulator/MockIOManipulator.hpp
test/tcframe/logger/BaseLogggerTests.cpp
test/tcframe/logger/MockLoggerEngine.hpp
test/tcframe/logger/SimpleLoggerEngineTests.cpp
test/tcframe/os/MockOperatingSystem.hpp
test/tcframe/runner/ArgsParserTests.cpp
test/tcframe/runner/MockRunnerLogger.hpp
test/tcframe/runner/MockRunnerLoggerFactory.hpp
test/tcframe/runner/RunnerTests.cpp
test/tcframe/runner/RunnerLoggerTests.cpp
test/tcframe/runner/SlugParserTests.cpp
test/tcframe/scorer/DiffScorerTests.cpp
test/tcframe/scorer/MockScorer.hpp
test/tcframe/spec/constraint/ConstraintSuiteBuilderTests.cpp
test/tcframe/spec/core/BaseTestSpecTests.cpp
test/tcframe/spec/core/BaseProblemSpecTests.cpp
test/tcframe/spec/core/MagicTests.cpp
test/tcframe/spec/core/MockSeedSetter.hpp
test/tcframe/spec/io/GridIOSegmentBuilderTests.cpp
test/tcframe/spec/io/IOFormatBuilderTests.cpp
test/tcframe/spec/io/LineIOSegmentBuilderTests.cpp
test/tcframe/spec/io/LinesIOSegmentBuilderTests.cpp
test/tcframe/spec/random/RandomTests.cpp
test/tcframe/spec/testcase/TestCaseIdCreatorTests.cpp
test/tcframe/spec/testcase/TestSuiteBuilderTests.cpp
test/tcframe/spec/variable/FakeVariable.hpp
test/tcframe/spec/variable/MatrixTests.cpp
test/tcframe/spec/variable/ScalarTests.cpp
test/tcframe/spec/variable/TokenFormatterTests.cpp
test/tcframe/spec/variable/VariableTests.cpp
test/tcframe/spec/variable/VectorTests.cpp
test/tcframe/spec/variable/WhitespaceManipulatorTests.cpp
test/tcframe/grader/GraderTests.cpp
test/tcframe/grader/GraderLoggerTests.cpp
test/tcframe/grader/MockGrader.hpp
test/tcframe/grader/MockGraderLogger.hpp
test/tcframe/grader/MockTestCaseGrader.hpp
test/tcframe/grader/TestCaseGraderTests.cpp
test/tcframe/util/OptionalTests.cpp
test/tcframe/util/StringUtilsTests.cpp
test/tcframe/util/TestUtils.hpp
test/tcframe/verifier/MockVerifier.hpp
test/tcframe/verifier/VerifierTests.cpp
)

add_executable(tests ${SOURCES})

target_link_libraries(tests
gtest
gmock
${CMAKE_THREAD_LIBS_INIT}
gcov
gtest
gmock
${CMAKE_THREAD_LIBS_INIT}
gcov
)

set(ETE_SOURCES
ete-test/tcframe/BaseEteTests.cpp
ete-test/tcframe/GenerationEteTests.cpp
ete-test/tcframe/BaseEteTests.cpp
ete-test/tcframe/GenerationEteTests.cpp
ete-test/tcframe/GradingEteTests.cpp
)

add_executable(ete_tests ${ETE_SOURCES})

target_link_libraries(ete_tests
gtest
gmock
${CMAKE_THREAD_LIBS_INIT}
gcov
gtest
gmock
${CMAKE_THREAD_LIBS_INIT}
gcov
)

add_custom_command(
TARGET ete_tests
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/include $<TARGET_FILE_DIR:ete_tests>/tcframe/include
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/src $<TARGET_FILE_DIR:ete_tests>/tcframe/src
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/scripts $<TARGET_FILE_DIR:ete_tests>/tcframe/scripts
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/ete-test/resources $<TARGET_FILE_DIR:ete_tests>/ete
TARGET ete_tests
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/include $<TARGET_FILE_DIR:ete_tests>/tcframe/include
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/src $<TARGET_FILE_DIR:ete_tests>/tcframe/src
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/scripts $<TARGET_FILE_DIR:ete_tests>/tcframe/scripts
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/ete-test/resources $<TARGET_FILE_DIR:ete_tests>/ete
)

0 comments on commit f228f2b

Please sign in to comment.