Skip to content

Instantly share code, notes, and snippets.

@Tryum
Created May 7, 2020 19:14
Show Gist options
  • Save Tryum/037edc5fc1a9ef2a25fc750f76ed8c99 to your computer and use it in GitHub Desktop.
Save Tryum/037edc5fc1a9ef2a25fc750f76ed8c99 to your computer and use it in GitHub Desktop.
cmake_minimum_required(VERSION 3.5)
project (Codingame)
#add_executable(nonogram-inversor puzzle/nonogram-inversor.cpp)
#add_executable(ocean-of-code contest/ocean-of-code.cpp)
add_executable(spring-challenge-2020 contest/spring-challenge-2020.cpp)
#############################################
# Unit tests
add_subdirectory(3rd_party/google-test)
# enable CTest testing
enable_testing()
# Add a testing executable
#add_executable(unit_tests test/nonogram-inversor.cpp)
add_executable(spring-challenge-2020_tests test/spring-challenge-2020_test.cpp)
target_link_libraries(spring-challenge-2020_tests
GTest::GTest
GTest::Main
)
add_test(test_all spring-challenge-2020_tests)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment