CMakeLists.txt 777 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. cmake_minimum_required(VERSION 2.8.4)
  2. project(bng_analyzer)
  3. include_directories(
  4. "${CMAKE_SOURCE_DIR}"
  5. "${CMAKE_CURRENT_SOURCE_DIR}/../../../libbng/"
  6. )
  7. include_directories(
  8. SYSTEM
  9. ${CMAKE_CURRENT_SOURCE_DIR}/../../../libbng/libs/
  10. ${CMAKE_CURRENT_SOURCE_DIR}/../../../libbng/libs/sparsehash/src
  11. )
  12. if (NOT WIN32)
  13. add_definitions(-std=c++14)
  14. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall ")
  15. endif()
  16. if (NOT TARGET libbng)
  17. add_subdirectory(
  18. ${CMAKE_CURRENT_SOURCE_DIR}/../../../libbng/bng
  19. ${CMAKE_CURRENT_BINARY_DIR}/libs/bng
  20. )
  21. endif()
  22. set(SOURCE_FILES
  23. bng_analyzer.cpp
  24. nfsim_species_unifier.cpp
  25. )
  26. set(ALL_SOURCES
  27. ${SOURCE_FILES}
  28. )
  29. add_executable(${PROJECT_NAME}
  30. ${ALL_SOURCES}
  31. )
  32. target_link_libraries(${PROJECT_NAME}
  33. libbng
  34. )