|
|
@@ -11,7 +11,7 @@ add_compile_options(-mno-avx) # enable avx will cause some stack pointer alignme
|
|
|
include_directories(./src)
|
|
|
|
|
|
find_package(Boost REQUIRED COMPONENTS iostreams)
|
|
|
-list(APPEND EXTRA_LIBS ${Boost_LIBRARIES} bcrypt)
|
|
|
+list(APPEND EXTRA_LIBS ${Boost_LIBRARIES})
|
|
|
include_directories(${Boost_INCLUDE_DIRS})
|
|
|
|
|
|
find_package(fmt REQUIRED)
|
|
|
@@ -35,7 +35,9 @@ file(GLOB_RECURSE SRC_FILES ./src/*.cpp)
|
|
|
add_executable(${PROJECT_NAME} ${SRC_FILES})
|
|
|
|
|
|
IF (WIN32)
|
|
|
- list(APPEND EXTRA_LIBS ws2_32 wsock32 winmm)
|
|
|
+ list(APPEND EXTRA_LIBS ws2_32 wsock32 winmm bcrypt)
|
|
|
+ELSEIF (UNIX)
|
|
|
+ list(APPEND crypt)
|
|
|
ENDIF ()
|
|
|
|
|
|
target_link_libraries(${PROJECT_NAME} ${EXTRA_LIBS})
|