blob: 2bd023c31b370320d28770c3157908c8472a5276 (
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
|
include_directories(
${CMAKE_SOURCE_DIR}/include
${CMAKE_BINARY_DIR}/include
)
add_executable(spm
spm.c
)
target_link_libraries(spm libspm crypto ssl curl)
if (LINUX)
target_link_libraries(spm libspm 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
)
|