add_executable(bitread bitread.cc)
target_link_libraries(bitread absl::optional absl::strings gflags libprjxray)

add_executable(segmatch segmatch.cc)
target_link_libraries(segmatch gflags absl::strings)

add_executable(bittool bittool.cc)
target_link_libraries(bittool libprjxray gflags absl::strings absl::span)

add_executable(frame_address_decoder frame_address_decoder.cc)
target_link_libraries(frame_address_decoder libprjxray)

add_executable(gen_part_base_yaml gen_part_base_yaml.cc)
target_link_libraries(gen_part_base_yaml
	absl::optional
	absl::span
	libprjxray
	yaml-cpp
	gflags
)
add_executable(xc7patch xc7patch.cc)
target_link_libraries(xc7patch
	absl::strings
	absl::time
	gflags
	libprjxray
)

add_executable(xc7frames2bit xc7frames2bit.cc)
target_link_libraries(xc7frames2bit
	absl::strings
	absl::time
	gflags
	libprjxray
)

install(TARGETS xc7frames2bit xc7patch gen_part_base_yaml frame_address_decoder bittool segmatch bitread DESTINATION bin)
