CMakeLists.txt 578 B

1234567891011121314151617
  1. cmake_minimum_required (VERSION 2.8)
  2. # + + + set a project name, it is referenced in other cmake function calls
  3. project( izhikevich )
  4. # + + + set cache variables for a version number
  5. set( VERSION_MAJOR 1 )
  6. set( VERSION_MINOR 0 )
  7. # + + + add executable target to the project: add_executable( <target_name> source1 [source 2] ...)
  8. add_executable( izhikevich izhikevich izhikevich.cpp )
  9. # + + + specify include directories
  10. include_directories( izhikevich /usr/include/plplot )
  11. # + + + ... and libraries
  12. target_link_libraries( izhikevich plplotcxxd plplotd gsl gslcblas )