# library
add_library(ecfp BBMol.cpp Build.cpp ECMol.cpp Fragmentation.cpp Frame.cpp Library.cpp Overlap.cpp SSS.cpp Unit.cpp WrapSQLite.cpp)


# executable
add_executable(frag ECFP-frag.cpp)
add_executable(build ECFP-build.cpp)
add_executable(merge ECFP-merge.cpp)
target_compile_definitions(frag PRIVATE -DREV=${Revision})
target_compile_definitions(build PRIVATE -DREV=${Revision})
target_compile_definitions(merge PRIVATE -DREV=${Revision})


# link
target_link_libraries(frag ecfp ${Boost_LIBRARIES} ${SQLite_LIBRARIES} ${OpenBabel_LIBRARY})
target_link_libraries(build ecfp ${Boost_LIBRARIES} ${SQLite_LIBRARIES} ${OpenBabel_LIBRARY})
target_link_libraries(merge ecfp ${Boost_LIBRARIES} ${SQLite_LIBRARIES} ${OpenBabel_LIBRARY})


# install
install(TARGETS frag build merge RUNTIME DESTINATION bin)

