cleanup cmakelists.txt

This commit is contained in:
Yuichi Nishiwaki 2014-03-02 14:51:50 +09:00
parent 2bd25266b9
commit 6eac53e715
1 changed files with 6 additions and 0 deletions

View File

@ -1,8 +1,12 @@
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
PROJECT(picrin) PROJECT(picrin)
# load extra cmake modules
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/") set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
# ----
# git submodule update --init # git submodule update --init
execute_process( execute_process(
COMMAND ${GIT_EXECUTABLE} submodule update --init COMMAND ${GIT_EXECUTABLE} submodule update --init
@ -26,6 +30,8 @@ include(tools/CMakeLists.txt)
file(COPY piclib DESTINATION .) file(COPY piclib DESTINATION .)
file(COPY etc DESTINATION .) file(COPY etc DESTINATION .)
# ----
# $ make run # $ make run
add_custom_target(run bin/picrin DEPENDS repl) add_custom_target(run bin/picrin DEPENDS repl)