CMakeLists.txt 802 B

12345678910111213141516171819202122232425262728293031323334353637
  1. cmake_minimum_required(VERSION 2.8.4)
  2. project(data_model_to_pymcell)
  3. include_directories(
  4. ${CMAKE_SOURCE_DIR}
  5. ${CMAKE_CURRENT_SOURCE_DIR}/../..
  6. ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/jsoncpp/include
  7. )
  8. set(CMAKE_CXX_STANDARD 17)
  9. include_directories(SYSTEM ${CMAKE_SOURCE_DIR}/libs/ ${CMAKE_SOURCE_DIR}/libs/sparsehash/src)
  10. set(SOURCE_FILES
  11. data_model_to_pymcell.cpp
  12. mcell4_generator.cpp
  13. python_generator.cpp
  14. bngl_generator.cpp
  15. generator_utils.cpp
  16. data_model_geometry.cpp
  17. ../../libmcell/api/api_utils.cpp
  18. ../../libmcell/api/python_export_utils.cpp
  19. )
  20. set(ALL_SOURCES
  21. ${SOURCE_FILES}
  22. )
  23. add_executable(${PROJECT_NAME}
  24. ${ALL_SOURCES}
  25. )
  26. add_dependencies(data_model_to_pymcell version_h)
  27. target_link_libraries(${PROJECT_NAME}
  28. jsoncpp_lib libmcell ${VTK_LIBRARIES}
  29. )