update build
This commit is contained in:
1 parent
225d6886ef
commit
9aac08b64b
3 files changed
+19
-15
No files matched your search
@@ -1,16 +1,12 @@
|
||||
cmake_minimum_required (VERSION 2.6)
|
||||
project(auth_service)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
include_directories(./src/libs/ ./src)
|
||||
|
||||
add_executable(
|
||||
auth_service
|
||||
src/auth_service.cpp
|
||||
|
||||
src/auth/auth.cpp
|
||||
src/auth/verify_auth.cpp
|
||||
|
||||
src/users/access_request.cpp
|
||||
src/users/change_password.cpp
|
||||
src/users/delete_user.cpp
|
||||
@@ -18,12 +14,8 @@ add_executable(
|
||||
src/users/get_all_users.cpp
|
||||
src/users/get_user.cpp
|
||||
src/users/change_user.cpp
|
||||
|
||||
src/security/cors.cpp
|
||||
|
||||
src/AuthService/AuthService.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(auth_service ssl crypto)
|
||||
|
||||
install(TARGETS auth_service DESTINATION bin)
|
||||
@@ -1,18 +1,14 @@
|
||||
CXX=g++
|
||||
CXXFLAGS=-Wall -l ssl -l crypto -I src/libs -I src/auth -I src/security -I src/users
|
||||
SOURCES=src/auth_service.cpp src/auth/auth.cpp src/auth/verify_auth.cpp src/security/cors.cpp src/users/access_request.cpp src/users/add_user.cpp src/users/change_password.cpp src/users/change_user.cpp src/users/delete_user.cpp src/users/get_all_users.cpp src/users/get_user.cpp
|
||||
CXXFLAGS=-Wall -l ssl -l crypto -I src/libs -I src/auth -I src/security -I src/users -I src
|
||||
SOURCES=src/auth_service.cpp src/auth/auth.cpp src/auth/verify_auth.cpp src/security/cors.cpp src/users/access_request.cpp src/users/add_user.cpp src/users/change_password.cpp src/users/change_user.cpp src/users/delete_user.cpp src/users/get_all_users.cpp src/users/get_user.cpp src/AuthService/AuthService.cpp
|
||||
TARGET=bin/auth_service
|
||||
|
||||
default: all
|
||||
|
||||
all: build
|
||||
|
||||
build:
|
||||
@if [ ! -d bin ]; then \
|
||||
mkdir bin; \
|
||||
fi
|
||||
$(CXX) -o $(TARGET) $(SOURCES) $(CXXFLAGS)
|
||||
|
||||
clean:
|
||||
@if [ -f $(TARGET) ]; then \
|
||||
rm -v $(TARGET); \
|
||||
|
||||
+17
-1
@@ -1,4 +1,20 @@
|
||||
project('auth_service', 'cpp')
|
||||
include_dirs = include_directories('src', 'src/libs')
|
||||
deps = dependency('openssl')
|
||||
executable('auth_service', 'src/auth_service.cpp', 'src/users/access_request.cpp', 'src/users/add_user.cpp', 'src/users/change_password.cpp', 'src/users/change_user.cpp', 'src/users/delete_user.cpp', 'src/users/get_all_users.cpp', 'src/users/get_user.cpp', 'src/security/cors.cpp', 'src/AuthService/AuthService.cpp', 'src/auth/auth.cpp', 'src/auth/verify_auth.cpp', include_directories : include_dirs, dependencies : deps)
|
||||
executable(
|
||||
'auth_service',
|
||||
'src/auth_service.cpp',
|
||||
'src/users/access_request.cpp',
|
||||
'src/users/add_user.cpp',
|
||||
'src/users/change_password.cpp',
|
||||
'src/users/change_user.cpp',
|
||||
'src/users/delete_user.cpp',
|
||||
'src/users/get_all_users.cpp',
|
||||
'src/users/get_user.cpp',
|
||||
'src/security/cors.cpp',
|
||||
'src/AuthService/AuthService.cpp',
|
||||
'src/auth/auth.cpp',
|
||||
'src/auth/verify_auth.cpp',
|
||||
include_directories : include_dirs,
|
||||
dependencies : deps
|
||||
)
|
||||
Reference in new issue
Block a user