fix: copy config.json to build dir

This commit is contained in:
Tobias Reisinger 2019-09-22 13:36:01 +02:00
parent 907b52160a
commit 9a44bc494e
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View file

@ -3,5 +3,3 @@ cmake-build-debug
.idea
sql/*.h
core.sqlite

View file

@ -58,6 +58,8 @@ foreach(cspFile ${SCP_LIST})
set(VIEWSRC ${VIEWSRC} ${classname}.cc)
endforeach()
configure_file("config.json" "config.json" COPYONLY)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_executable(core ${SRC_DIR} ${CTL_SRC} ${FILTER_SRC} ${VIEWSRC} ${PLUGIN_SRC} ${MODEL_SRC} ${HELPER_SRC})