The following changes have been made: 1. Replace deprecated functions with new standard functions 2. Add corresponding MSVC functions for non-standard functions 3. Remove warnings about unsafe functions 4. CMAKE: modify find pack Libevent and openssl 5. Modify include files 6. Use pthread4W 7. Modify socket in windows 8. Add CI - github action 8.1. msvc 8.2. mingw 10. The database: 9.1. sqlite, pgsql, hiredis, mongo is test compiled. 9.2. mysql, isnot test compiled. 11. The applications、server can be compiled and run successfully! 12. Add vcpkg manifest mode in cmake.
23 lines
593 B
CMake
23 lines
593 B
CMake
# Author: Kang Lin <kl222@126.com>
|
|
|
|
project(turnutils_peer)
|
|
|
|
set(SOURCE_FILES
|
|
mainudpserver.c udpserver.c
|
|
)
|
|
|
|
add_executable(${PROJECT_NAME} ${SOURCE_FILES})
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE turnclient)
|
|
set_target_properties(${PROJECT_NAME} PROPERTIES
|
|
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
|
)
|
|
INSTALL(TARGETS ${PROJECT_NAME}
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
COMPONENT Runtime
|
|
)
|
|
install(DIRECTORY
|
|
$<TARGET_FILE_DIR:${PROJECT_NAME}>/
|
|
DESTINATION DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
COMPONENT Runtime
|
|
)
|