2014-03-26 01:08:39 -04:00
|
|
|
list(APPEND REPL_LIBRARIES picrin)
|
|
|
|
|
2014-06-05 09:08:07 -04:00
|
|
|
find_package(Libedit)
|
2014-05-25 23:01:08 -04:00
|
|
|
if (Libedit_FOUND)
|
|
|
|
include_directories(${Libedit_INCLUDE_DIRS})
|
|
|
|
add_definitions(${Libedit_DEFINITIONS} -DPIC_READLINE_FOUND=1)
|
|
|
|
list(APPEND REPL_LIBRARIES ${Libedit_LIBRARIES})
|
2014-03-02 00:34:02 -05:00
|
|
|
endif()
|
|
|
|
|
2014-04-05 23:36:08 -04:00
|
|
|
# build
|
2014-03-01 11:52:41 -05:00
|
|
|
add_executable(repl tools/main.c)
|
|
|
|
set_target_properties(repl PROPERTIES OUTPUT_NAME picrin)
|
2014-03-26 01:08:39 -04:00
|
|
|
target_link_libraries(repl ${REPL_LIBRARIES})
|
2014-04-05 23:36:08 -04:00
|
|
|
|
|
|
|
# install
|
|
|
|
install(TARGETS repl RUNTIME DESTINATION bin)
|