Skip to content

Commit

Permalink
feat: Added include directory
Browse files Browse the repository at this point in the history
Signed-off-by: Yash Pandey (YP) <yash.btech.cs19@iiitranchi.ac.in>
  • Loading branch information
EmperorYP7 committed Aug 10, 2021
1 parent 32bfa27 commit 016794f
Show file tree
Hide file tree
Showing 12 changed files with 8,895 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ endif()
###############################################################################
# Project definition.

project(Casbin-CPP
VERSION 1.27.0
project(CasbinCPP
VERSION 1.35.0
DESCRIPTION "An authorization library that supports access control models like ACL, RBAC, ABAC in C/C++"
HOMEPAGE_URL https://github.com/casbin/casbin-cpp
LANGUAGES CXX C
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ set(HEADERS

add_library(pycasbin MODULE ${SOURCES} ${HEADERS})

target_include_directories(pycasbin PUBLIC ${CMAKE_SOURCE_DIR})
target_include_directories(pycasbin PUBLIC ${CMAKE_SOURCE_DIR}/include)

set_target_properties(pycasbin PROPERTIES
PREFIX ""
Expand Down
9 changes: 8 additions & 1 deletion casbin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,15 @@ install(
DESTINATION lib
)

install(TARGETS casbin EXPORT CasbinTargets
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
INCLUDES DESTINATION include
)

install(
DIRECTORY ${CMAKE_SOURCE_DIR}/casbin
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
DESTINATION include
FILES_MATCHING PATTERN "*.h"
)
14 changes: 14 additions & 0 deletions include/casbin/casbin.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//
// Created by Yash Pandey on 08/08/21.
//

#ifndef CASBIN_CPP_CASBIN_H
#define CASBIN_CPP_CASBIN_H

#include "casbin_enforcer.h"
#include "casbin_helpers.h"
#include "casbin_types.h"
#include "duktape/duktape.h"
#include "duktape/duk_config.h"

#endif //CASBIN_CPP_CASBIN_H
722 changes: 722 additions & 0 deletions include/casbin/casbin_enforcer.h

Large diffs are not rendered by default.

Loading

0 comments on commit 016794f

Please sign in to comment.