blob: bac27692b38ab5c0b9684047b637d94509e47692 (
plain) (
blame)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
include_directories(
${CMAKE_SOURCE_DIR}/include
${CMAKE_BINARY_DIR}/include
)
add_executable(spm
spm.c
config.c
compat.c
resolve.c
fs.c
rpath.c
find.c
shell.c
archive.c
str.c
relocation.c
install.c
config_global.c
manifest.c
checksum.c
extern/url.c
version_spec.c
spm_build.c
mime.c
internal_cmd.c
environment.c
mirrors.c
strlist.c
shlib.c
user_input.c
metadata.c
purge.c
)
target_link_libraries(spm crypto ssl curl)
if (LINUX)
target_link_libraries(spm rt)
endif()
if(MSVC)
target_compile_options(spm PRIVATE /W4 /WX)
else()
target_compile_options(spm PRIVATE -Wall -Wextra -fstack-protector)
endif()
install(
TARGETS spm
DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
)
|