kopia lustrzana https://github.com/f4exb/sdrangel
43 wiersze
770 B
CMake
43 wiersze
770 B
CMake
project(perseus)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
find_package(LibUSB)
|
|
|
|
add_definitions(-DHAVE_CONFIG_H)
|
|
|
|
set(perseus_SOURCES
|
|
fpga_data.c
|
|
${LIBPERSEUSSRC}/perseuserr.c
|
|
${LIBPERSEUSSRC}/perseusfx2.c
|
|
${LIBPERSEUSSRC}/perseus-in.c
|
|
${LIBPERSEUSSRC}/perseus-sdr.c
|
|
)
|
|
|
|
set(perseus_HEADERS
|
|
fpga_data.h
|
|
${LIBPERSEUSSRC}/perseuserr.h
|
|
${LIBPERSEUSSRC}/perseusfx2.h
|
|
${LIBPERSEUSSRC}/perseus-in.h
|
|
${LIBPERSEUSSRC}/perseus-sdr.h
|
|
)
|
|
|
|
include_directories(
|
|
.
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
${LIBUSB_INCLUDE_DIR}
|
|
${LIBPERSEUSSRC}
|
|
)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
add_library(perseus SHARED
|
|
${perseus_SOURCES}
|
|
)
|
|
|
|
target_link_libraries(perseus
|
|
${LIBUSB_LIBRARIES}
|
|
)
|
|
|
|
install(TARGETS perseus DESTINATION lib)
|