12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- cmake_minimum_required(VERSION 2.8.4)
- project(bng_analyzer)
- include_directories(
- "${CMAKE_SOURCE_DIR}"
- "${CMAKE_CURRENT_SOURCE_DIR}/../../../libbng/"
- )
- include_directories(
- SYSTEM
- ${CMAKE_CURRENT_SOURCE_DIR}/../../../libbng/libs/
- ${CMAKE_CURRENT_SOURCE_DIR}/../../../libbng/libs/sparsehash/src
- )
- if (NOT WIN32)
- add_definitions(-std=c++14)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall ")
- endif()
- if (NOT TARGET libbng)
- add_subdirectory(
- ${CMAKE_CURRENT_SOURCE_DIR}/../../../libbng/bng
- ${CMAKE_CURRENT_BINARY_DIR}/libs/bng
- )
- endif()
- set(SOURCE_FILES
- bng_analyzer.cpp
- nfsim_species_unifier.cpp
- )
- set(ALL_SOURCES
- ${SOURCE_FILES}
- )
- add_executable(${PROJECT_NAME}
- ${ALL_SOURCES}
- )
- target_link_libraries(${PROJECT_NAME}
- libbng
- )
|