Skip to content

Instantly share code, notes, and snippets.

@Ben1980
Last active February 13, 2019 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ben1980/62a1af84f4d6bbd63634fe77e87ba117 to your computer and use it in GitHub Desktop.
Save Ben1980/62a1af84f4d6bbd63634fe77e87ba117 to your computer and use it in GitHub Desktop.
Solver CMakeLists.txt file of n-body-project
add_library(solver
SHARED
src/solver.cpp)
target_include_directories(solver
PUBLIC
include)
add_executable(solverTest
test/test-main.cpp
test/solverTest.cpp)
target_link_libraries(solverTest Catch
solver)
enable_testing()
add_test(NAME solverTest COMMAND solverTest)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment