32 lines
583 B
CMake
32 lines
583 B
CMake
add_executable(scarchat-server
|
|
main.cpp
|
|
server.cpp
|
|
server.h
|
|
session.cpp
|
|
session.h
|
|
auth/authenticator.cpp
|
|
auth/authenticator.h
|
|
database/database.cpp
|
|
database/database.h
|
|
config/server_config.cpp
|
|
config/server_config.h
|
|
)
|
|
|
|
target_include_directories(scarchat-server PRIVATE
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
target_link_libraries(scarchat-server PRIVATE
|
|
scarchat_shared
|
|
Boost::system
|
|
Boost::thread
|
|
OpenSSL::SSL
|
|
OpenSSL::Crypto
|
|
SQLite::SQLite3
|
|
)
|
|
|
|
# Install
|
|
install(TARGETS scarchat-server
|
|
RUNTIME DESTINATION bin
|
|
)
|