-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
45 lines (33 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
cmake_minimum_required(VERSION 2.8)
project(ck-crowdnode)
set(SRC
src/net_uuid.h
src/net_uuid.c
src/base64.h
src/base64.c
src/cJSON.h
src/cJSON.c
src/urldecoder.c
src/ck-crowdnode-server.c
)
add_executable(ck-crowdnode-server ${SRC})
IF(WIN32)
target_link_libraries(ck-crowdnode-server ws2_32)
install( TARGETS ck-crowdnode-server RUNTIME DESTINATION bin COMPONENT Applications)
include(InstallRequiredSystemLibraries)
set(CPACK_GENERATOR NSIS)
set(CPACK_PACKAGE_NAME "ck-crowdnode-server")
set(CPACK_PACKAGE_VENDOR "cTuning.org")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "CK crowd-node server")
set(CPACK_PACKAGE_VERSION "0.0.1")
set(CPACK_PACKAGE_VERSION_MAJOR "0")
set(CPACK_PACKAGE_VERSION_MINOR "0")
set(CPACK_PACKAGE_VERSION_PATCH "1")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "CK crowd-node server")
set(CPACK_NSIS_MODIFY_PATH ON)
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}\\\\LICENSE.txt")
set(CPACK_PACKAGE_EXECUTABLES ck-crowdnode-server "CK crowd-node server")
include(CPack)
ELSE(WIN32)
target_link_libraries(ck-crowdnode-server m)
ENDIF(WIN32)