-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
30 lines (24 loc) · 738 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
30 lines (24 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
project(fpgalink)
# Create a shared library
file(GLOB SOURCES src/*.cpp src/*.c)
add_library(${PROJECT_NAME} SHARED ${SOURCES})
# Ensure clients can find the includes
target_include_directories(${PROJECT_NAME} PUBLIC include)
# Dependencies
set(LIB_DEPENDS common error usbwrap buffer fx2loader)
target_link_libraries(${PROJECT_NAME} PUBLIC ${LIB_DEPENDS})
# What to install
install(TARGETS ${PROJECT_NAME}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
install(
DIRECTORY include/makestuff DESTINATION include
)
# Maybe build tests
if(BUILD_TESTING)
add_subdirectory(tests-unit)
endif()
add_subdirectory(mkfw)
add_subdirectory(flcli)