fix: CMakeLists typo

This commit is contained in:
Tobias Reisinger 2020-06-17 01:06:12 +02:00
parent 5b8d0b0275
commit 4d28033073

View file

@ -18,13 +18,15 @@ aux_source_directory(src/helpers HELPERS_SRC)
aux_source_directory(src/handlers HANDLERS_SRC) aux_source_directory(src/handlers HANDLERS_SRC)
aux_source_directory(src/endpoints ENDPOINTS_SRC) aux_source_directory(src/endpoints ENDPOINTS_SRC)
add_dependencies(core migrations)
configure_file("core.ini" "core.ini" COPYONLY) configure_file("core.ini" "core.ini" COPYONLY)
target_sources(core PRIVATE ${SRC_DIR} ${HANDLERS_SRC} ${HELPERS_SRC} ${MODELS_SRC} ${ENDPOINTS_SRC}) target_sources(core PRIVATE ${SRC_DIR} ${HANDLERS_SRC} ${HELPERS_SRC} ${MODELS_SRC} ${ENDPOINTS_SRC})
target_include_directories(core PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include) target_include_directories(core PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)
target_include_directories(core PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/vendor) target_include_directories(core PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/vendor)
add_custom_target(migrations ALL add_custom_target(migrations
COMMAND ./compile_migrations.sh COMMAND ./compile_migrations.sh
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
) )