diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f6105f..dcce968 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,32 +1,10 @@ -# cmake_minimum_required(VERSION 3.23) -# project(TokenGranterWrapperBindings) - -# set(CMAKE_CXX_STANDARD 17) - -# set(CURL_LIBRARY "-lcurl") -# find_package(CURL REQUIRED) - -# # add_executable(token_granter src/token_granter.cpp) -# # target_include_directories(token_granter PRIVATE ${CURL_INCLUDE_DIRS}) -# # target_link_libraries(token_granter ${CURL_LIBRARIES}) - -# # SHARED LIBRARY COMPILATION HERE -# add_library(token_granter_shared SHARED ./lib/src/token_granter.cpp) -# target_link_libraries(token_granter_shared ${CURL_LIBRARIES}) -# target_link_libraries(token_granter_shared ${CURL_LIBRARIES}) - - -# # PYBINDING SHARED LIBRARY COMPILATION HERE -# add_subdirectory(./lib/include/pybind11) -# pybind11_add_module(token_granter ./token_granter_wrapper/token_granter_bindings.cpp ./lib/src/token_granter.cpp) -# set_target_properties(token_granter PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/token_granter_wrapper) -# target_link_libraries(token_granter PRIVATE pybind11::module) -# target_link_libraries(token_granter PRIVATE ${CURL_LIBRARIES}) - cmake_minimum_required(VERSION 3.23) project(TokenGranterWrapperBindings) set(CMAKE_CXX_STANDARD 17) +set(CURL_LIBRARY "-lcurl") +find_package(CURL REQUIRED) + add_subdirectory(./lib/include/pybind11) add_subdirectory(./lib/src) @@ -34,4 +12,4 @@ set(SOURCE_DIR "src/token_granter_wrapper") set(SOURCES "${SOURCE_DIR}/token_granter_bindings.cpp") pybind11_add_module(token_granter_bindings ${SOURCES}) -target_link_libraries(token_granter_bindings PRIVATE token_granter) \ No newline at end of file +target_link_libraries(token_granter_bindings PRIVATE token_granter ${CURL_LIBRARIES}) \ No newline at end of file