You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.4 KiB
42 lines
1.4 KiB
10 years ago
|
cmake_policy(SET CMP0015 NEW)
|
||
10 years ago
|
# let cmake autolink dependencies on windows
|
||
|
cmake_policy(SET CMP0020 NEW)
|
||
10 years ago
|
# this policy was introduced in cmake 3.0
|
||
|
# remove if, once 3.0 will be used on unix
|
||
10 years ago
|
if (${CMAKE_MAJOR_VERSION} GREATER 2)
|
||
10 years ago
|
# old policy do not use MACOSX_RPATH
|
||
|
cmake_policy(SET CMP0042 OLD)
|
||
|
cmake_policy(SET CMP0043 OLD)
|
||
|
endif()
|
||
11 years ago
|
|
||
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||
|
aux_source_directory(. SRC_LIST)
|
||
|
|
||
10 years ago
|
include_directories(${JSON_RPC_CPP_INCLUDE_DIRS})
|
||
10 years ago
|
include_directories(..)
|
||
11 years ago
|
|
||
10 years ago
|
set(EXECUTABLE qwebthree)
|
||
11 years ago
|
|
||
10 years ago
|
file(GLOB HEADERS "*.h")
|
||
10 years ago
|
|
||
11 years ago
|
if(ETH_STATIC)
|
||
10 years ago
|
add_library(${EXECUTABLE} STATIC ${RESOURCE_ADDED} ${SRC_LIST} ${HEADERS})
|
||
11 years ago
|
else()
|
||
10 years ago
|
add_library(${EXECUTABLE} SHARED ${RESOURCE_ADDED} ${SRC_LIST} ${HEADERS})
|
||
11 years ago
|
endif()
|
||
11 years ago
|
|
||
10 years ago
|
target_link_libraries(${EXECUTABLE} Qt5::Core)
|
||
|
target_link_libraries(${EXECUTABLE} Qt5::Gui)
|
||
|
target_link_libraries(${EXECUTABLE} Qt5::WebKit)
|
||
|
target_link_libraries(${EXECUTABLE} Qt5::WebKitWidgets)
|
||
|
target_link_libraries(${EXECUTABLE} Qt5::Widgets)
|
||
|
target_link_libraries(${EXECUTABLE} Qt5::Network)
|
||
|
target_link_libraries(${EXECUTABLE} Qt5::Quick)
|
||
|
target_link_libraries(${EXECUTABLE} Qt5::Qml)
|
||
10 years ago
|
target_link_libraries(${EXECUTABLE} ${JSON_RPC_CPP_SERVER_LIBRARIES})
|
||
10 years ago
|
target_link_libraries(${EXECUTABLE} ethereum)
|
||
|
target_link_libraries(${EXECUTABLE} secp256k1)
|
||
11 years ago
|
|
||
10 years ago
|
install( TARGETS ${EXECUTABLE} ARCHIVE DESTINATION lib LIBRARY DESTINATION lib )
|
||
|
install( FILES ${HEADERS} DESTINATION include/${EXECUTABLE} )
|