Skip to content

Commit 0c7d15f

Browse files
authored
Update CMakeLists.txt
1 parent 907975d commit 0c7d15f

File tree

1 file changed

+10
-32
lines changed

1 file changed

+10
-32
lines changed

CMakeLists.txt

+10-32
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,17 @@ set(LIB_ANCILLARY_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "ancillary libr
88

99
include_directories(.)
1010

11-
add_library(
12-
ancillary
13-
STATIC
14-
ancillary.h
15-
fd_recv.c
16-
fd_send.c
17-
)
11+
add_library( ancillary STATIC ancillary.h fd_recv.c fd_send.c )
1812

1913
option(libancillary_build_test OFF)
2014

2115
if (libancillary_build_test)
22-
add_executable(
23-
test_exe
24-
test.c
25-
)
26-
target_link_libraries(
27-
test_exe
28-
ancillary
29-
)
30-
add_executable(
31-
evclient
32-
evclient.c
33-
)
34-
target_link_libraries(
35-
evclient
36-
ancillary
37-
)
38-
add_executable(
39-
evserver
40-
evserver.c
41-
)
42-
target_link_libraries(
43-
evserver
44-
ancillary
45-
)
46-
endif (libancillary_build_test)
16+
add_executable( test_exe test.c )
17+
target_link_libraries( test_exe ancillary )
18+
19+
add_executable( evclient evclient.c )
20+
target_link_libraries( evclient ancillary )
21+
22+
add_executable( evserver evserver.c )
23+
target_link_libraries( evserver ancillary )
24+
endif (libancillary_build_test)

0 commit comments

Comments
 (0)