blob: 6adfbedb780cc8ebdc6cefcfb838fc6972b2600b (
plain)
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
32
33
|
project(p7tool C)
set(P7TOOL_PRIVATE_INCLUDE_DIRS
${CMAKE_BINARY_DIR}
${NSPR_INCLUDE_DIRS}
${NSS_INCLUDE_DIRS}
)
set(P7TOOL_LINK_LIBRARIES
${NSPR_LIBRARIES}
${NSS_LIBRARIES}
)
set(p7tool_SRCS
secerror.c
secpwd.c
secutil.c
pppolicy.c
p7tool.c
)
include_directories(${P7TOOL_PRIVATE_INCLUDE_DIRS})
add_executable(p7tool ${p7tool_SRCS})
target_link_libraries(p7tool ${P7TOOL_LINK_LIBRARIES})
install(
TARGETS p7tool
RUNTIME DESTINATION ${BIN_INSTALL_DIR}
LIBRARY DESTINATION ${LIB_INSTALL_DIR}
ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
)
|