Skip to content

Commit

Permalink
fix CMakeList (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangjieke authored Jul 13, 2024
1 parent 012bc7f commit 90d708e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 2.8)

project(AES CXX)

set(SOURCE_FILES src/AES.cpp src/AES.h)
add_library(${PROJECT_NAME} ${SOURCE_FILES})
set(SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/AES.cpp)
set(INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)

target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
add_library(${PROJECT_NAME} ${SOURCE_FILES})
target_include_directories(${PROJECT_NAME} PUBLIC ${INCLUDE_DIR})


0 comments on commit 90d708e

Please sign in to comment.