diff --git a/CMakeLists.txt b/CMakeLists.txt index 0222f7a..1af6c63 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,15 +2,15 @@ cmake_minimum_required(VERSION 3.2) option(BUILD_TESTS "Build test programs" OFF) -project(bcrypt) +project(bcrypt-cpp) set(CMAKE_CXX_STANDARD 11) -add_library(bcrypt src/bcrypt.cpp src/blowfish.cpp) -target_include_directories(bcrypt PRIVATE src/) -target_include_directories(bcrypt PUBLIC include/) +add_library(bcrypt_cpp src/bcrypt.cpp src/blowfish.cpp) +target_include_directories(bcrypt_cpp PRIVATE src/) +target_include_directories(bcrypt_cpp PUBLIC include/) if(BUILD_TESTS) - add_executable(test test/main.cpp) - target_link_libraries(test PRIVATE bcrypt) + add_executable(test_bcryptcpp test/main.cpp) + target_link_libraries(test_bcryptcpp PRIVATE bcrypt_cpp) endif() diff --git a/include/bcrypt.h b/include/bcrypt-cpp/bcrypt.h similarity index 100% rename from include/bcrypt.h rename to include/bcrypt-cpp/bcrypt.h diff --git a/src/bcrypt.cpp b/src/bcrypt.cpp index c154915..8e0eeb0 100644 --- a/src/bcrypt.cpp +++ b/src/bcrypt.cpp @@ -39,7 +39,7 @@ #include "node_blf.h" -#include "bcrypt.h" +#include "bcrypt-cpp/bcrypt.h" #include "openbsd.h" #ifdef _WIN32