diff --git a/CMakeLists.txt b/CMakeLists.txt index ecb6398..c333924 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,18 +90,5 @@ AUX_SOURCE_DIRECTORY(helpers HELPER_SRC) 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}) -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})