-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
32 lines (26 loc) · 1.23 KB
/
CMakeLists.txt
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
31
################################################################################
# First example: compiling a binary that depends on libibex-Hcontrol
################################################################################
# source files of bin1
list (APPEND SRC1 ${CMAKE_CURRENT_SOURCE_DIR}/bin1.cpp
# Add more source files here.
# For most plugins, the rest can be left as is.
)
# Create the target for bin1
add_executable (bin1 ${SRC1})
target_link_libraries (bin1 PUBLIC ibex-Hcontrol)
# install the binary
install (TARGETS bin1 DESTINATION ${CMAKE_INSTALL_BINDIR})
################################################################################
# Second example: compiling a binary that depends only on libibex
################################################################################
# source files of bin2
list (APPEND SRC2 ${CMAKE_CURRENT_SOURCE_DIR}/bin2.cpp
# Add more source files here.
# For most plugins, the rest can be left as is.
)
# Create the target for bin2
add_executable (bin2 ${SRC2})
target_link_libraries (bin2 PUBLIC Ibex::ibex)
# install the binary
install (TARGETS bin2 DESTINATION ${CMAKE_INSTALL_BINDIR})