keva-stratum/cnutil/CMakeLists.txt

36 lines
819 B
CMake
Raw Normal View History

2016-12-06 09:37:21 +00:00
set(CXXLIB "cnutil")
2015-07-05 09:49:07 +00:00
find_package(Boost COMPONENTS thread system program_options date_time filesystem REQUIRED)
# Flags
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -D_GNU_SOURCE")
include_directories(${Boost_INCLUDE_DIRS})
include_directories("${MONERO_DIR}/contrib/epee/include")
include_directories("${MONERO_DIR}/src")
2016-12-06 09:37:21 +00:00
link_directories(
${MONERO_DIR}/src/cryptonote_core
${MONERO_DIR}/src/crypto
${MONERO_DIR}/src/common
${MONERO_DIR}/src/ringct
)
2015-07-05 09:49:07 +00:00
# Build library
2016-12-06 09:37:21 +00:00
add_library(${CXXLIB} SHARED src/cnutil.cpp)
2015-07-05 09:49:07 +00:00
target_link_libraries(${CXXLIB}
2016-12-06 09:37:21 +00:00
cryptonote_core
crypto
common
ringct
2015-07-05 09:49:07 +00:00
)
target_link_libraries(${CXXLIB}
${Boost_THREAD_LIBRARY}
${Boost_SYSTEM_LIBRARY}
${Boost_PROGRAM_OPTIONS_LIBRARY}
${Boost_DATE_TIME_LIBRARY}
${Boost_FILESYSTEM_LIBRARY}
)