This commit is contained in:
Yuichi Nishiwaki 2014-03-26 14:08:39 +09:00
parent 4ce7ce7ef3
commit 2d25594592
1 changed files with 4 additions and 1 deletions

View File

@ -1,9 +1,12 @@
list(APPEND REPL_LIBRARIES picrin)
find_package(READLINE)
if (READLINE_FOUND)
include_directories(${READLINE_INCLUDE_DIRS})
add_definitions(${READLINE_DEFINITIONS} -DPIC_READLINE_FOUND=1)
list(APPEND REPL_LIBRARIES ${READLINE_LIBRARIES})
endif()
add_executable(repl tools/main.c)
set_target_properties(repl PROPERTIES OUTPUT_NAME picrin)
target_link_libraries(repl picrin ${READLINE_LIBRARIES})
target_link_libraries(repl ${REPL_LIBRARIES})