mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
templates folder added to cmake
This commit is contained in:
parent
2b15f5d8ea
commit
8247faf232
5 changed files with 45 additions and 10 deletions
|
@ -72,7 +72,6 @@ set_property(TARGET lmdb
|
|||
include_directories(${Boost_INCLUDE_DIRS})
|
||||
include_directories("ext/mstch/include")
|
||||
|
||||
|
||||
# add ext/ subfolder
|
||||
add_subdirectory(ext/)
|
||||
|
||||
|
@ -83,9 +82,25 @@ add_subdirectory(src/)
|
|||
set(SOURCE_FILES
|
||||
main.cpp)
|
||||
|
||||
ADD_CUSTOM_TARGET(driver DEPENDS src/templates/index.html)
|
||||
|
||||
add_executable(${PROJECT_NAME}
|
||||
${SOURCE_FILES})
|
||||
|
||||
#add_custom_command(OUTPUT template_folder
|
||||
# COMMAND ${CMAKE_COMMAND} -E
|
||||
# copy_directory "${CMAKE_CURRENT_SOURCE_DIR}/src/templates" "${CMAKE_CURRENT_BINARY_DIR}"
|
||||
# DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/src/templates")
|
||||
#
|
||||
#add_custom_target(index_html
|
||||
# ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/templates")
|
||||
#
|
||||
#ADD_DEPENDENCIES(${PROJECT_NAME}
|
||||
# index_html)
|
||||
|
||||
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/src/templates"
|
||||
DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
myxrm
|
||||
myext
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue