fix: CMakeLists typo
This commit is contained in:
parent
5b8d0b0275
commit
4d28033073
1 changed files with 3 additions and 1 deletions
|
@ -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}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue