Skip to content
Snippets Groups Projects
Commit 640dfb4d authored by Jason Wu's avatar Jason Wu
Browse files

restore CMakeLists.txt in dadaflow

parent aeda9b85
No related branches found
No related tags found
1 merge request!43Edd merge 10to8
Pipeline #256109 passed
......@@ -8,15 +8,19 @@ if(ENABLE_CUDA)
${CMAKE_CURRENT_SOURCE_DIR}/io/sigproc/src/SigprocIO.cpp
)
# Install all include files and exclude unnecessary folders
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
DESTINATION include/psrdada_cpp
PATTERN "test" EXCLUDE
PATTERN "examples" EXCLUDE
PATTERN "cli" EXCLUDE
PATTERN "doc" EXCLUDE)
# PATTERN "src" EXCLUDE)
# Add the sources to the psrdada_cpp library
target_sources(${CMAKE_PROJECT_NAME} PRIVATE ${PSRDADA_CPP_DADAFLOW_SRC})
# ----------------------------- #
# -- Build DADAFLOW examples -- #
# ----------------------------- #
......@@ -30,12 +34,11 @@ if(ENABLE_CUDA)
switch_example
node_selector_example
)
# Install the dadaflow examples using the DADAFLOW_EXAMPLE_CLI list
foreach(EXEC_NAME ${DADAFLOW_EXAMPLE_CLI})
set(EXEC_SRC "examples/${EXEC_NAME}.cpp")
add_executable(${EXEC_NAME} ${EXEC_SRC})
target_link_libraries(${EXEC_NAME} PUBLIC ${PSRDADA_CPP_LIBRARIES})
install(TARGETS ${EXEC_NAME} DESTINATION bin)
endforeach()
# ----------------------------- #
......@@ -45,6 +48,10 @@ if(ENABLE_CUDA)
target_link_libraries (rfsoc2tafp PUBLIC ${PSRDADA_CPP_LIBRARIES})
install (TARGETS rfsoc2tafp DESTINATION bin)
# ----------------------------- #
# -- Add tests -- #
# ----------------------------- #
if (ENABLE_TESTING)
add_subdirectory(test)
add_subdirectory(io/sigproc/test)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment