From 9d9a530e3004bfe450a18a9cddade70a36fae426 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Tue, 6 Aug 2019 23:30:03 +0200 Subject: [PATCH] fix: no views --- CMakeLists.txt | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) 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})