fix: no views
This commit is contained in:
parent
2be5532778
commit
9d9a530e30
1 changed files with 1 additions and 14 deletions
|
@ -90,18 +90,5 @@ AUX_SOURCE_DIRECTORY(helpers HELPER_SRC)
|
||||||
|
|
||||||
include_directories(/usr/local/include)
|
include_directories(/usr/local/include)
|
||||||
|
|
||||||
FILE(GLOB SCP_LIST ${CMAKE_CURRENT_SOURCE_DIR}/views/*.csp)
|
|
||||||
foreach(cspFile ${SCP_LIST})
|
|
||||||
message(STATUS "cspFile:" ${cspFile})
|
|
||||||
EXEC_PROGRAM(basename ARGS "${cspFile} .csp" OUTPUT_VARIABLE classname)
|
|
||||||
message(STATUS "view classname:" ${classname})
|
|
||||||
add_custom_command(OUTPUT ${classname}.h ${classname}.cc
|
|
||||||
COMMAND drogon_ctl
|
|
||||||
ARGS create view ${cspFile}
|
|
||||||
DEPENDS ${cspFile}
|
|
||||||
VERBATIM )
|
|
||||||
set(VIEWSRC ${VIEWSRC} ${classname}.cc)
|
|
||||||
endforeach()
|
|
||||||
|
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
add_executable(core ${SRC_DIR} ${CTL_SRC} ${FILTER_SRC} ${VIEWSRC} ${PLUGIN_SRC} ${MODEL_SRC} ${HELPER_SRC})
|
add_executable(core ${SRC_DIR} ${CTL_SRC} ${FILTER_SRC} ${PLUGIN_SRC} ${MODEL_SRC} ${HELPER_SRC})
|
||||||
|
|
Loading…
Reference in a new issue