Skip to content

Commit

Permalink
Updating CMake for libencrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
behzadmehmood committed Jul 10, 2024
1 parent 7f1df67 commit 18be453
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions libs/libencrypt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,17 @@ foreach(_headerFile ${LIB_HEADERS})
endforeach()
list(REMOVE_DUPLICATES LIB_INCLUDE_DIRS)

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)

add_library(libencrypt ${LIB_HEADERS} ${LIB_SOURCES})

set_target_properties(libencrypt PROPERTIES PREFIX "")

target_link_libraries(libencrypt PRIVATE ${OPENSSL_LIBRARIES} libpugixml)

# Add executable
add_executable(encrypt main.cpp ${LIB_HEADERS} ${LIB_SOURCES} )

target_include_directories(encrypt PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/src
)
target_link_libraries(encrypt PRIVATE ${OPENSSL_LIBRARIES} libpugixml)

#install(TARGETS libencrypt DESTINATION bin)
Expand Down

0 comments on commit 18be453

Please sign in to comment.