try add_library instead

This commit is contained in:
Pliable Pixels 2019-05-01 14:22:10 -04:00
parent ca24b504d4
commit c663246f0a
2 changed files with 5 additions and 2 deletions

View File

@ -870,7 +870,7 @@ include(Pod2Man)
ADD_MANPAGE_TARGET()
# Process subdirectories
add_subdirectory(third_party/bcrypt)
#add_subdirectory(third_party/bcrypt)
add_subdirectory(src)
add_subdirectory(scripts)
add_subdirectory(db)

View File

@ -9,10 +9,13 @@ set(ZM_BIN_SRC_FILES zm_box.cpp zm_buffer.cpp zm_camera.cpp zm_comms.cpp zm_conf
# includes and linkages to 3rd party libraries/src
set (ZM_BIN_THIRDPARTY_SRC_FILES ../third_party/sha1/sha1.cpp)
add_library(bcrypt GLOBAL SHARED IMPORTED)
set_target_properties( bcrypt PROPERTIES IMPORTED_LOCATION ../third_party/bcrypt/libbcrypt.so )
# A fix for cmake recompiling the source files for every target.
add_library(zm STATIC ${ZM_BIN_SRC_FILES} ${ZM_BIN_THIRDPARTY_SRC_FILES})
link_directories(../third_party/bcrypt)
#link_directories(../third_party/bcrypt)
add_executable(zmc zmc.cpp)
add_executable(zma zma.cpp)