move main.c to src/

This commit is contained in:
Yuichi Nishiwaki 2014-09-01 09:40:55 +09:00
parent 83f580bfcf
commit 8764bec50b
4 changed files with 14 additions and 10 deletions

View File

@ -32,7 +32,6 @@ include_directories(extlib/benz/include)
include(piclib/CMakeLists.txt) include(piclib/CMakeLists.txt)
include(contrib/CMakeLists.txt) include(contrib/CMakeLists.txt)
include(src/CMakeLists.txt) include(src/CMakeLists.txt)
include(tools/CMakeLists.txt)
# ---- # ----

View File

@ -1,3 +1,5 @@
### libpicrin ###
find_package(Perl REQUIRED) find_package(Perl REQUIRED)
# benz # benz
@ -31,3 +33,15 @@ target_link_libraries(picrin m ${PICRIN_CONTRIB_LIBRARIES})
set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib) set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
install(TARGETS picrin DESTINATION lib) install(TARGETS picrin DESTINATION lib)
install(DIRECTORY extlib/benz/include/ DESTINATION include FILES_MATCHING PATTERN "*.h") install(DIRECTORY extlib/benz/include/ DESTINATION include FILES_MATCHING PATTERN "*.h")
### picrin ###
list(APPEND REPL_LIBRARIES picrin)
# build
add_executable(repl src/main.c)
set_target_properties(repl PROPERTIES OUTPUT_NAME picrin)
target_link_libraries(repl ${REPL_LIBRARIES})
# install
install(TARGETS repl RUNTIME DESTINATION bin)

View File

@ -1,9 +0,0 @@
list(APPEND REPL_LIBRARIES picrin)
# build
add_executable(repl tools/main.c)
set_target_properties(repl PROPERTIES OUTPUT_NAME picrin)
target_link_libraries(repl ${REPL_LIBRARIES})
# install
install(TARGETS repl RUNTIME DESTINATION bin)