-
Notifications
You must be signed in to change notification settings - Fork 23
/
CMakeLists.txt
44 lines (43 loc) · 1.05 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
cmake_minimum_required(VERSION 3.1)
project(qubic-cli C CXX)
set (CMAKE_CXX_STANDARD 11)
SET(FILES ${CMAKE_SOURCE_DIR}/connection.cpp
${CMAKE_SOURCE_DIR}/keyUtils.cpp
${CMAKE_SOURCE_DIR}/nodeUtils.cpp
${CMAKE_SOURCE_DIR}/fileUpload.cpp
${CMAKE_SOURCE_DIR}/walletUtils.cpp
${CMAKE_SOURCE_DIR}/assetUtils.cpp
${CMAKE_SOURCE_DIR}/qubicLogParser.cpp
${CMAKE_SOURCE_DIR}/SCUtils.cpp
${CMAKE_SOURCE_DIR}/quottery.cpp
${CMAKE_SOURCE_DIR}/qutil.cpp
${CMAKE_SOURCE_DIR}/qx.cpp
${CMAKE_SOURCE_DIR}/proposal.cpp
)
SET(HEADER_FILES
K12AndKeyUtil.h
SCUtils.h
argparser.h
assetUtil.h
connection.h
defines.h
fourq-qubic.h
global.h
keyUtils.h
logger.h
nodeUtils.h
prompt.h
qubicLogParser.h
quottery.h
qutil.h
sanityCheck.h
structs.h
utils.h
walletUtils.h
proposal.h
)
ADD_EXECUTABLE(qubic-cli main.cpp ${FILES} ${HEADER_FILES})
ADD_LIBRARY(fourq-qubic SHARED fourq-qubic.cpp)
set_property(TARGET fourq-qubic PROPERTY SOVERSION 1)
target_compile_options(fourq-qubic PRIVATE -DBUILD_4Q_LIB)
install(TARGETS fourq-qubic LIBRARY)