-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathCMakeLists.txt
469 lines (389 loc) · 17.5 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
cmake_minimum_required(VERSION 3.8)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS OFF)
project(XTOPCHAIN CXX C)
option(XENABLE_CODE_COVERAGE "Enable code coverage" OFF)
option(XENABLE_TESTS "Enable building tests" OFF)
option(XENABLE_VERBOSE_DBG "Enable verbose dbg" OFF)
option(XENABLE_EXCEPTION_AS_ERROR "Treat exception as xerror in debug mode" OFF)
option(BUILD_METRICS "build metrics" ON)
option(XDISABLE_RATELIMIT "Disable rate limit" OFF)
option(XENABLE_CONFIG_CHECK, "Enable config check when node boot" OFF)
option(XENABLE_MOCK_ZEC_STAKE, "Enable mocking stake for ZEC" OFF)
option(XENABLE_ASSERTION_FAILURE, "Enable assertion failure. Most of the time set to OFF when running tests against invalid scenario" ON)
if (XENABLE_TESTS)
set(XENABLE_ASSERTION_FAILURE OFF)
set(XENABLE_BLOCK_VERIFY OFF)
set(XSYNC_TEST ON)
else()
set(XENABLE_ASSERTION_FAILURE ON)
set(XENABLE_BLOCK_VERIFY OFF)
set(XSYNC_TEST OFF)
endif()
set(CMAKE_VERBOSE_MAKEFILE OFF)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
if (NOT CMAKE_CXX_COMPILER)
message(FATAL_ERROR "C++ Compiler not found")
endif()
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)
endif()
string(TOLOWER ${CMAKE_BUILD_TYPE} XBUILD_TYPE)
if (${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC)
if (NOT CMAKE_TOOLCHAIN_FILE)
message(FATAL_ERROR "CMAKE_TOOLCHAIN_FILE property not defined. Set it in CMakeSettings.json file.")
endif()
if (NOT EXISTS ${CMAKE_TOOLCHAIN_FILE})
message(FATAL_ERROR "CMAKE_TOOLCHAIN_FILE not found.")
endif()
endif()
#=============================================================================
# for git version
#==============================================================================
include(cmake/gitinfo.cmake)
get_git_info()
include(cmake/version.cmake)
add_definitions(
-DBUILD_USER_LIB # for -lcommon
-D__TRACKING_PBFT_PROCESS__
-DTEST_FOR_ELECTION
-DGOSSIP_WITH_WROUTER
)
#==============================================================================
# In order to set default executable and library binaries' location,
# one solution, by setting
# variables (CMAKE_RUNTIME_OUTPUT_DIRECTORY / CMAKE_LIBRARY_OUTPUT_DIRECTORY)
# or properties (RUNTIME_OUTPUT_DIRECTORY / LIBRARY_OUTPUT_DIRECTORY),
# doesn't work, althrough CMake documentation says it's the recommonded way.
# Fall back to use EXECUTABLE_OUTPUT_PATH / LIBRARY_OUTPUT_PATH.
#==============================================================================
#set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
#set_property(DIRECTORY PROPERTY RUNTIME_OUTPUT_DIRECTORY ${XTOPCHAIN_BINARY_DIR}/bin/${CMAKE_BUILD_TYPE})
#set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR/lib})
#set_property(DIRECTORY PROPERTY LIBRARY_OUTPUT_DIRECTORY ${XTOPCHAIN_BINARY_DIR}/lib/${CMAKE_BUILD_TYPE})
set(EXECUTABLE_OUTPUT_PATH ${XTOPCHAIN_BINARY_DIR}/bin/${CMAKE_SYSTEM_NAME}/)
set(LIBRARY_OUTPUT_PATH ${XTOPCHAIN_BINARY_DIR}/lib/${CMAKE_SYSTEM_NAME}/)
if (${CMAKE_CXX_COMPILER_ID} STREQUAL Clang OR ${CMAKE_CXX_COMPILER_ID} STREQUAL AppleClang OR ${CMAKE_CXX_COMPILER_ID} STREQUAL GNU)
# set common options for Clang or GNUCXX
add_compile_options(
$<$<STREQUAL:$<TARGET_PROPERTY:LINKER_LANGUAGE>,CXX>:-fexceptions> # https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/Code-Gen-Options.html#index-fexceptions
$<$<STREQUAL:$<TARGET_PROPERTY:LINKER_LANGUAGE>,CXX>:-frtti> # https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/C_002b_002b-Dialect-Options.html#index-fno-rtti
)
# common compiling options
add_compile_options(
-fno-strict-aliasing
-fthreadsafe-statics
-pthread
-fstack-protector-strong
-fno-short-enums
-fPIC
)
if (ADDRESS_SANITIZER)
add_compile_options(-fsanitize=address)
endif()
# set warnings
add_compile_options(
-Wall # https://gcc.gnu.org/onlinedocs/gcc-4.8.5/gcc/Warning-Options.html#index-Wall-263
-Werror # https://gcc.gnu.org/onlinedocs/gcc-4.8.5/gcc/Warning-Options.html#index-Werror-254
# -Wextra # https://gcc.gnu.org/onlinedocs/gcc-4.8.5/gcc/Warning-Options.html#index-Wextra-266
# -Wpedantic # https://gcc.gnu.org/onlinedocs/gcc-4.8.5/gcc/Warning-Options.html#index-Wpedantic-261
# -Wconversion # https://gcc.gnu.org/onlinedocs/gcc-4.8.5/gcc/Warning-Options.html#index-Wconversion-426
# -Wempty-body
-Wfatal-errors
# -Wshadow
# -Wzero-as-null-pointer-constant
-Wunreachable-code
-Wno-missing-field-initializers
-Werror=return-type
-Werror=write-strings
-Werror=unused-label
-Werror=switch
)
add_definitions(-D_GNU_SOURCE)
if (${CMAKE_CXX_COMPILER_ID} STREQUAL Clang OR ${CMAKE_CXX_COMPILER_ID} STREQUAL AppleClang)
# add_compile_options(-Wabstract-final-class -Wshift-overflow -Wint-to-void-pointer-cast)
add_compile_options(-Werror=self-assign
-Werror=exceptions)
endif()
if (${CMAKE_CXX_COMPILER_ID} STREQUAL GNU)
# add_compile_options(-Wsuggest-final-methods -Wsuggest-final-types -Wsuggest-override)
# add_compile_options(-fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free) // for tcmalloc
endif()
#==============================================================================
# Althrough CMake documentation (3.6.3) says add_compile_options supports
# generator expressions, the actual result is -buggy-.
# add_compile_options doesn't fully working with generator expressions.
#
# $<$<OR:?1,?2>:...>
# for OR expression, do not insert any whitespace character between ?1 and ?2.
#==============================================================================
# options for Debug
#add_compile_options($<$<OR:$<CONFIG:Debug>,$<CONFIG:debug>>:-g2 -ggdb -O0 -fno-omit-frame-pointer>)
set_property(DIRECTORY APPEND PROPERTY COMPILE_OPTIONS $<$<OR:$<CONFIG:Debug>,$<CONFIG:debug>>:-g3 -ggdb -O0 -fno-omit-frame-pointer>)
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS $<$<OR:$<CONFIG:Debug>,$<CONFIG:debug>>:DEBUG _DEBUG>)
# options for Release & RelWithDebInfo
# add_compile_options($<$<OR:$<CONFIG:Release>,$<CONFIG:RelWithDebInfo>,$<CONFIG:release>>:-fomit-frame-pointer -ffunction-sections -fdata-sections>)
set_property(DIRECTORY APPEND PROPERTY COMPILE_OPTIONS $<$<OR:$<CONFIG:Release>,$<CONFIG:RelWithDebInfo>,$<CONFIG:release>>:-ffunction-sections -fdata-sections>)
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS $<$<OR:$<CONFIG:Release>,$<CONFIG:RelWithDebInfo>,$<CONFIG:release>>:NDEBUG>)
# options for Release
add_compile_options($<$<OR:$<CONFIG:Release>,$<CONFIG:release>>:-g0>)
# options for RelWithDebInfo
add_compile_options($<$<CONFIG:RelWithDebInfo>:-g1>)
add_compile_options($<$<CONFIG:RelWithDebInfo>:-ggdb>)
elseif(${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC)
# common compile options
add_compile_options(
/Zc:auto,forScope,inline,wchar_t
/Zc:externConstexpr # https://docs.microsoft.com/en-us/cpp/build/reference/zc-externconstexpr
/Zc:implicitNoexcept # https://docs.microsoft.com/en-us/cpp/build/reference/zc-implicitnoexcept-implicit-exception-specifiers
/Zc:noexceptTypes # https://docs.microsoft.com/en-us/cpp/build/reference/zc-noexcepttypes
/Zc:referenceBinding # https://docs.microsoft.com/en-us/cpp/build/reference/zc-referencebinding-enforce-reference-binding-rules
/Zc:rvalueCast # https://docs.microsoft.com/en-us/cpp/build/reference/zc-rvaluecast-enforce-type-conversion-rules
/Zc:sizedDealloc # https://docs.microsoft.com/en-us/cpp/build/reference/zc-sizeddealloc-enable-global-sized-dealloc-functions
/Zc:strictStrings # https://docs.microsoft.com/en-us/cpp/build/reference/zc-strictstrings-disable-string-literal-type-conversion
/Zc:threadSafeInit # https://docs.microsoft.com/en-us/cpp/build/reference/zc-threadsafeinit-thread-safe-local-static-initialization
/Zc:throwingNew # https://docs.microsoft.com/en-us/cpp/build/reference/zc-throwingnew-assume-operator-new-throws
/Zc:trigraphs- # https://docs.microsoft.com/en-us/cpp/build/reference/zc-trigraphs-trigraphs-substitution
/Zc:__cplusplus # https://docs.microsoft.com/en-us/cpp/build/reference/zc-cplusplus
/permissive- # https://blogs.msdn.microsoft.com/vcblog/2016/11/16/permissive-switch/
# https://blogs.msdn.microsoft.com/vcblog/2017/09/11/two-phase-name-lookup-support-comes-to-msvc/
# https://docs.microsoft.com/en-us/cpp/build/reference/permissive-standards-conformance
/volatile:iso # https://docs.microsoft.com/en-us/cpp/build/reference/volatile-volatile-keyword-interpretation
/GS
/Zi
/Gm- # Disable Minimal Rebuild
# /sdl # Adds recommended Security Development Lifecycle (SDL) checks
/EHsc
/fp:precise
/errorReport:prompt
/GF # Eliminate Duplicate Strings
/Gd # Specifies the __cdecl calling convention for all functions except C++ member functions and functions that are marked __stdcall, __fastcall, or __vectorcall.
/diagnostics:caret # https://docs.microsoft.com/en-us/cpp/build/reference/diagnostics-compiler-diagnostic-options
/doc
/wd4634 # XML document comment target: cannot be applied: reason
/utf-8 # https://docs.microsoft.com/en-us/cpp/build/reference/utf-8-set-source-and-executable-character-sets-to-utf-8
/WL # https://docs.microsoft.com/en-us/cpp/build/reference/wl-enable-one-line-diagnostics
)
if (CMAKE_CXX_FLAGS MATCHES "/W[0-3]")
string(REGEX REPLACE "/W[0-3]" "/W4" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
else()
add_compile_options(/W4)
endif()
add_definitions(
-D_SCL_SECURE_NO_WARNINGS
-D_CRT_SECURE_NO_WARNINGS
-DNOMINMAX
-D_WIN32_WINNT=0x0600 # Vista and above
-D_WINDOWS
-D_UNICODE
-DUNICODE)
# options for Debug
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS $<$<OR:$<CONFIG:Debug>,$<CONFIG:debug>>:_DEBUG DEBUG>)
# options for Release & RelWithDebInfo
# /O2 equivalent to /Og /Oi /Ot /Oy /Ob2 /Gs /GF /Gy
# https://docs.microsoft.com/en-us/cpp/build/reference/o1-o2-minimize-size-maximize-speed
# set_property(DIRECTORY APPEND PROPERTY COMPILE_OPTIONS $<$<OR:$<CONFIG:Release>,$<CONFIG:RelWithDebInfo>>:/O2>)
add_compile_options($<$<OR:$<CONFIG:Release>,$<CONFIG:RelWithDebInfo>,$<CONFIG:release>>:/O2>)
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS $<$<OR:$<CONFIG:Release>,$<CONFIG:release>>:NDEBUG>)
else()
message(FATAL_ERROR "Not supported C++ Compiler: " ${CMAKE_CXX_COMPILER_ID})
endif()
if (XENABLE_VERBOSE_DBG)
add_definitions(-DXENABLE_VERBOSE_DBG)
endif()
if (BUILD_METRICS)
add_definitions(-DENABLE_METRICS)
endif()
if (BUILD_XSECURITY)
add_definitions(-DENABLE_XSECURITY)
endif()
if (BUILD_GPERF)
add_definitions(-DENABLE_GPERF)
endif()
if (TCMALLOC)
add_definitions(-DENABLE_TCMALLOC)
endif()
if (BUILD_NTP)
add_definitions(-DENABLE_NTP)
endif()
#add_definitions(-DEXTERNAL_PROPERTY)
if (XDISABLE_RATELIMIT)
add_definitions(-DXDISABLE_RATELIMIT)
endif()
if (XENABLE_EXCEPTION_AS_ERROR)
add_definitions(-DXTHROW_ERROR)
endif()
if (XENABLE_MOCK_ZEC_STAKE)
add_definitions(-DXENABLE_MOCK_ZEC_STAKE)
endif()
if (ENABLE_SCALE)
add_definitions(-DENABLE_SCALE)
endif()
if (XENABLE_CONFIG_CHECK)
add_definitions(-DCONFIG_CHECK)
endif()
if (XENABLE_ASSERTION_FAILURE)
add_definitions(-DXENABLE_ASSERTION_FAILURE)
endif()
# for slash test
if (SLASH_TEST)
add_definitions(-DSLASH_TEST)
endif()
# for workload test
if (WORKLOAD_TEST)
add_definitions(-DWORKLOAD_TEST)
endif()
if (MAINNET_ACTIVATED)
add_definitions(-DMAINNET_ACTIVATED)
endif()
if (XENABLE_BLOCK_VERIFY)
add_definitions(-DENABLE_BLOCK_VERIFY)
endif()
if (MOCK_CA)
add_definitions(-DMOCK_CA)
endif()
if (XSYNC_TEST)
add_definitions(-DSYNC_TEST)
endif()
if (XENABLE_PSTACK)
add_definitions(-DXENABLE_PSTACK)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -rdynamic")
endif()
if (XENABLE_MEMCHECK_DBG)
add_definitions(-DXENABLE_MEMCHECK_DBG)
endif()
if (STATIC_CONSENSUS)
add_definitions(-DSTATIC_CONSENSUS)
endif()
if (NO_TX_BATCH)
add_definitions(-DNO_TX_BATCH)
endif()
if (DB_CACHE)
add_definitions(-DDB_CACHE)
endif()
if (XENABLE_TESTS)
add_definitions(-DXENABLE_TESTS)
endif()
if (XBUILD_GALILEO)
add_definitions(-DXBUILD_GALILEO)
endif()
if (${CMAKE_SYSTEM_NAME} STREQUAL Linux OR ${CMAKE_SYSTEM_NAME} STREQUAL Darwin)
# find_package(PkgConfig REQUIRED)
endif()
message(STATUS "CMAKE_BUILD_TYPE:" ${CMAKE_BUILD_TYPE})
message(STATUS "CMAKE_SYSTEM_NAME:" ${CMAKE_SYSTEM_NAME})
message(STATUS "CMAKE_CXX_COMPILER_ID:" ${CMAKE_CXX_COMPILER_ID})
message(STATUS "XENABLE_CODE_COVERAGE:" ${XENABLE_CODE_COVERAGE})
message(STATUS "XENABLE_TESTS:" ${XENABLE_TESTS})
message(STATUS "XENABLE_VERBOSE_DBG:" ${XENABLE_VERBOSE_DBG})
message(STATUS "BUILD_METRICS:" ${BUILD_METRICS})
message(STATUS "ADDRESS_SANITIZER:" ${ADDRESS_SANITIZER})
message(STATUS "XENABLE_ASSERTION_FAILURE:" ${XENABLE_ASSERTION_FAILURE})
find_package(Threads REQUIRED)
include_directories(src/xtopcom) # xtopcom build warning will not print
include_directories(SYSTEM src/xtopcom/third_party)
include_directories(SYSTEM src/xtopcom/xdepends/include/trezor-crypto)
include_directories(SYSTEM src/xtopcom/xdepends/include)
include_directories(src/xtopcom/xtopcl/src) # xtopcom build warning will not print
include_directories(src/xtopcom/xtopcl/include) # xtopcom build warning will not print
include_directories(src/libraries)
include_directories(src/services)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
link_directories(${LIBRARY_OUTPUT_PATH})
link_directories(src/xtopcom/libs/Linux/${XBUILD_TYPE})
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
add_compile_options(
# -Wl,-z,relro
# -Wl,-z,noexecstack
# -Wl,--no-undefined
# -Wl,-z,now
-Wno-unused-function
-Wno-unused-value
-Wno-unused-variable
)
include_directories(SYSTEM src/xtopcom/xdepends/include_linux)
# link_directories(src/externals/libs/${CMAKE_SYSTEM_NAME}/)
link_directories(src/xtopcom/xbase/libs/${CMAKE_SYSTEM_NAME}/${XBUILD_TYPE})
link_directories(src/xtopcom/libs/${CMAKE_SYSTEM_NAME}/${XBUILD_TYPE})
link_directories(src/xtopcom/xdepends/libs/linux)
set(XDB_TYPE "ROCKSDB")
add_subdirectory(src)
elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
add_compile_options(
-Wno-unused-private-field
-Wno-inconsistent-missing-override
# -Wno-constexpr-not-const
-Wno-c++14-extensions
-Wno-unused-parameter
-Wno-sign-conversion
-Wno-delete-non-virtual-dtor
-Wno-sign-compare
-Wno-conversion
# -Wno-missing-declarations
# -Wno-conversion
# -Wno-float-conversion
-Wno-unused-variable
-Wno-reorder
-Wno-pragma-once-outside-header
-Wno-shadow
# -Wno-tautological-constant-out-of-range-compare
# -Wno-shift-op-parentheses
-Wno-unreachable-code
-Wno-pessimizing-move
-Wno-gnu-zero-variadic-macro-arguments
-Wno-return-type
-Wno-unused-function
-Wno-shorten-64-to-32
-Wno-unused-value
-Wno-c++11-narrowing
-Wno-unused-label
-Wno-unused-lambda-capture
-Wno-defaulted-function-deleted
-Wno-overloaded-virtual
-Wno-sometimes-uninitialized
)
# for xg
find_library(CFLIB CoreFoundation)
add_definitions(-DGUID_CFUUID)
# message("CFLIB: ${CFLIB}")
# link_directories(src/externals/libs/${CMAKE_SYSTEM_NAME}/)
link_directories(src/xtopcom/xbase/libs/MacOS/${XBUILD_TYPE})
link_directories(src/xtopcom/libs/MacOS/${XBUILD_TYPE})
link_directories(src/xtopcom/xdepends/libs/mac)
set(XDB_TYPE "ROCKSDB")
add_subdirectory(src)
endif()
if (XENABLE_TESTS)
enable_testing()
include_directories(.)
add_subdirectory(tests)
add_subdirectory(src/xtopcom/xconfig/tests)
add_subdirectory(src/xtopcom/xdb/test)
# add_subdirectory(src/programs/xtopchain_t)
# add_subdirectory(src/programs/xvm_t)
add_subdirectory(src/xtopcom/xmbus/tests)
# add_subdirectory(src/xtopcom/xheartbeat/tests)
add_subdirectory(tests/xca)
add_subdirectory(src/xtopcom/xrpc/tests)
add_subdirectory(src/xtopcom/xstore/test)
add_subdirectory(src/xtopcom/xstore/test_util)
add_subdirectory(src/xtopcom/xtxpool/test/unittest)
add_subdirectory(src/xtopcom/xtxpool_service/test/unittest)
add_subdirectory(src/xtopcom/xverifier/test)
endif()
# Users don't have to configure CMAKE_INSTALL_PREFIX unless they want to customize the destination.
if (CMAKE_INSTALL_PREFIX STREQUAL "/usr/local")
#set(CMAKE_INSTALL_PREFIX "/usr/local/topio" CACHE STRING "" FORCE)
endif()
#message (STATUS "TOPIO Installation directory: CMAKE_INSTALL_PREFIX = " ${CMAKE_INSTALL_PREFIX})
set(INSTALL_BIN_PATH /usr/bin/)
set(INSTALL_LIB_PATH /lib/)
INSTALL(TARGETS topio xtopchain
RUNTIME DESTINATION ${INSTALL_BIN_PATH}
LIBRARY DESTINATION ${INSTALL_LIB_PATH}
ARCHIVE DESTINATION ${INSTALL_LIB_PATH}
)