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)
|
cmake_minimum_required (VERSION 2.6)
|
||||||
project(auth_service)
|
project(auth_service)
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
|
||||||
include_directories(./src/libs/ ./src)
|
include_directories(./src/libs/ ./src)
|
||||||
|
|
||||||
add_executable(
|
add_executable(
|
||||||
auth_service
|
auth_service
|
||||||
src/auth_service.cpp
|
src/auth_service.cpp
|
||||||
|
|
||||||
src/auth/auth.cpp
|
src/auth/auth.cpp
|
||||||
src/auth/verify_auth.cpp
|
src/auth/verify_auth.cpp
|
||||||
|
|
||||||
src/users/access_request.cpp
|
src/users/access_request.cpp
|
||||||
src/users/change_password.cpp
|
src/users/change_password.cpp
|
||||||
src/users/delete_user.cpp
|
src/users/delete_user.cpp
|
||||||
@@ -18,12 +14,8 @@ add_executable(
|
|||||||
src/users/get_all_users.cpp
|
src/users/get_all_users.cpp
|
||||||
src/users/get_user.cpp
|
src/users/get_user.cpp
|
||||||
src/users/change_user.cpp
|
src/users/change_user.cpp
|
||||||
|
|
||||||
src/security/cors.cpp
|
src/security/cors.cpp
|
||||||
|
|
||||||
src/AuthService/AuthService.cpp
|
src/AuthService/AuthService.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(auth_service ssl crypto)
|
target_link_libraries(auth_service ssl crypto)
|
||||||
|
|
||||||
install(TARGETS auth_service DESTINATION bin)
|
install(TARGETS auth_service DESTINATION bin)
|
||||||
@@ -1,18 +1,14 @@
|
|||||||
CXX=g++
|
CXX=g++
|
||||||
CXXFLAGS=-Wall -l ssl -l crypto -I src/libs -I src/auth -I src/security -I src/users
|
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
|
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
|
TARGET=bin/auth_service
|
||||||
|
|
||||||
default: all
|
default: all
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@if [ ! -d bin ]; then \
|
@if [ ! -d bin ]; then \
|
||||||
mkdir bin; \
|
mkdir bin; \
|
||||||
fi
|
fi
|
||||||
$(CXX) -o $(TARGET) $(SOURCES) $(CXXFLAGS)
|
$(CXX) -o $(TARGET) $(SOURCES) $(CXXFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@if [ -f $(TARGET) ]; then \
|
@if [ -f $(TARGET) ]; then \
|
||||||
rm -v $(TARGET); \
|
rm -v $(TARGET); \
|
||||||
|
|||||||
+17
-1
@@ -1,4 +1,20 @@
|
|||||||
project('auth_service', 'cpp')
|
project('auth_service', 'cpp')
|
||||||
include_dirs = include_directories('src', 'src/libs')
|
include_dirs = include_directories('src', 'src/libs')
|
||||||
deps = dependency('openssl')
|
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