14 lines
369 B
CMake
14 lines
369 B
CMake
set(LIB_SOURCES
|
|
initiator.cpp
|
|
target.cpp
|
|
clkgen.cpp
|
|
resetgen.cpp
|
|
)
|
|
|
|
# Define two variables in order not to repeat ourselves.
|
|
set(LIBRARY_NAME vp_components)
|
|
# Define the library
|
|
add_library(${LIBRARY_NAME} SHARED ${LIB_SOURCES})
|
|
target_link_libraries (${LIBRARY_NAME} LINK_PUBLIC scc)
|
|
target_include_directories (${LIBRARY_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|