2014-05-26 09:22:19 +00:00
|
|
|
cmake_policy(SET CMP0015 NEW)
|
2014-12-10 10:39:41 +00:00
|
|
|
# this policy was introduced in cmake 3.0
|
|
|
|
# remove if, once 3.0 will be used on unix
|
2014-12-10 11:49:12 +00:00
|
|
|
if (${CMAKE_MAJOR_VERSION} GREATER 2)
|
2014-12-10 10:39:41 +00:00
|
|
|
# old policy do not use MACOSX_RPATH
|
|
|
|
cmake_policy(SET CMP0042 OLD)
|
|
|
|
endif()
|
2014-12-04 08:55:54 +00:00
|
|
|
set(CMAKE_AUTOMOC OFF)
|
2014-05-26 09:22:19 +00:00
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSTATICLIB")
|
|
|
|
|
|
|
|
aux_source_directory(. SRC_LIST)
|
|
|
|
|
2015-04-17 14:15:25 +00:00
|
|
|
include_directories(BEFORE ${JSONCPP_INCLUDE_DIRS})
|
2015-02-16 12:48:25 +00:00
|
|
|
include_directories(BEFORE ..)
|
2014-12-05 15:40:41 +00:00
|
|
|
include_directories(${Boost_INCLUDE_DIRS})
|
|
|
|
|
2014-05-26 09:22:19 +00:00
|
|
|
set(EXECUTABLE lll)
|
|
|
|
|
2014-10-16 13:10:54 +00:00
|
|
|
file(GLOB HEADERS "*.h")
|
2014-12-11 14:06:11 +00:00
|
|
|
|
2015-04-22 09:30:33 +00:00
|
|
|
add_library(${EXECUTABLE} ${SRC_LIST} ${HEADERS})
|
2014-06-28 17:23:32 +00:00
|
|
|
|
2014-11-06 13:50:18 +00:00
|
|
|
target_link_libraries(${EXECUTABLE} evmcore)
|
2014-09-05 16:24:29 +00:00
|
|
|
target_link_libraries(${EXECUTABLE} devcore)
|
2014-05-26 09:22:19 +00:00
|
|
|
|
2015-01-16 21:37:20 +00:00
|
|
|
install( TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib )
|
2014-05-26 09:22:19 +00:00
|
|
|
install( FILES ${HEADERS} DESTINATION include/${EXECUTABLE} )
|
|
|
|
|