Commit e39bac46 authored by PRUVOST Florent's avatar PRUVOST Florent

create a new target to force generation of sources, useful for generating the doc

parent f2009582
......@@ -999,6 +999,8 @@ list(REMOVE_DUPLICATES CHAMELEON_DEP) # WARNING: is it safe, respect order?
# Check for the subdirectories
# ----------------------------
set(CHAMELEON_SOURCES_TARGETS "" CACHE INTERNAL "List of targets of sources")
# include headers
# ---------------
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
......@@ -1073,6 +1075,9 @@ if(CHAMELEON_ENABLE_TIMING)
endif(CHAMELEON_ENABLE_TIMING)
#------------------------------------------------------------------------------
# Define a target which gathers all targets of sources
# useful for generating the doc without compiling the binaries (objects, libraries)
add_custom_target(chameleon_all_sources ALL DEPENDS ${CHAMELEON_SOURCES_TARGETS})
###############################################################################
# Documentation #
......
......@@ -282,6 +282,11 @@ if(HAVE_ISO_C_BINDING)
)
endif(HAVE_ISO_C_BINDING)
# Force generation of sources
# ---------------------------
add_custom_target(chameleon_sources ALL SOURCES "${CHAMELEON_SRCS};${CHAMELEON_SRCSF}")
set(CHAMELEON_SOURCES_TARGETS "${CHAMELEON_SOURCES_TARGETS};chameleon_sources" CACHE INTERNAL "List of targets of sources")
# Compile step
# ------------
add_library(chameleon ${CHAMELEON_SRCS} ${CHAMELEON_SRCSF})
......
......@@ -64,7 +64,7 @@ list(APPEND CHAMELEON_HDRS ${CHAMELEON_HDRS_GENERATED})
# Force generation of headers
# ---------------------------
add_custom_target(control_include ALL SOURCES ${CHAMELEON_HDRS})
set(CHAMELEON_SOURCES_TARGETS "${CHAMELEON_SOURCES_TARGETS};control_include" CACHE INTERNAL "List of targets of sources")
# installation
# ------------
......
......@@ -28,6 +28,7 @@
# Generate the morse sources for all possible precisions
# ------------------------------------------------------
set(COREBLAS_SRCS_GENERATED "")
set(ZSRC
core_dzasum.c
......@@ -104,6 +105,11 @@ set(COREBLAS_SRCS
${COREBLAS_SRCS_GENERATED}
)
# Force generation of sources
# ---------------------------
add_custom_target(coreblas_sources ALL SOURCES ${COREBLAS_SRCS})
set(CHAMELEON_SOURCES_TARGETS "${CHAMELEON_SOURCES_TARGETS};coreblas_sources" CACHE INTERNAL "List of targets of sources")
# Compile step
# ------------
add_library(coreblas ${COREBLAS_SRCS})
......
......@@ -57,6 +57,7 @@ endforeach()
# Force generation of headers
# ---------------------------
add_custom_target(coreblas_include ALL SOURCES ${COREBLAS_HDRS})
set(CHAMELEON_SOURCES_TARGETS "${CHAMELEON_SOURCES_TARGETS};coreblas_include" CACHE INTERNAL "List of targets of sources")
# Installation
# ------------
......
......@@ -88,6 +88,11 @@ if (CHAMELEON_USE_CUBLAS_V2)
)
endif (CHAMELEON_USE_CUBLAS_V2)
# Force generation of sources
# ---------------------------
add_custom_target(cudablas_sources ALL SOURCES ${CUDABLAS_SRCS})
set(CHAMELEON_SOURCES_TARGETS "${CHAMELEON_SOURCES_TARGETS};cudablas_sources" CACHE INTERNAL "List of targets of sources")
# Compile step
# ------------
add_library(cudablas ${CUDABLAS_SRCS})
......
......@@ -49,6 +49,7 @@ endforeach()
# Force generation of headers
# ---------------------------
add_custom_target(cudablas_include ALL SOURCES ${CUDABLAS_HDRS})
set(CHAMELEON_SOURCES_TARGETS "${CHAMELEON_SOURCES_TARGETS};cudablas_include" CACHE INTERNAL "List of targets of sources")
# Installation
# ------------
......
......@@ -77,7 +77,7 @@ if(DOXYGEN_EXECUTABLE)
add_custom_target(doxygen-out ALL
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/out-dev
#${CMAKE_CURRENT_BINARY_DIR}/out-usr
chameleon
chameleon_all_sources
)
# Installation for html version
......
......@@ -83,8 +83,8 @@ if(EMACS_COMPILER)
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/users_guide.org
${CMAKE_CURRENT_BINARY_DIR}/version.org
)
add_custom_target(doc-html-users_guide ALL DEPENDS users_guide.html chameleon)
add_custom_target(doc-pdf-users_guide ALL DEPENDS users_guide.pdf chameleon)
add_custom_target(doc-html-users_guide ALL DEPENDS users_guide.html)
add_custom_target(doc-pdf-users_guide ALL DEPENDS users_guide.pdf)
# Installation
# ------------
......
Subproject commit 1e7bad3a5e56c28514f8121195ffefdda70335bb
Subproject commit 2bc36789f26039bc6eefe03f6825a383847724f5
......@@ -69,6 +69,7 @@ endforeach()
# ---------------------------
add_custom_target(chameleon_include
ALL SOURCES morse.h ${CHAMELEON_HDRS} )
set(CHAMELEON_SOURCES_TARGETS "${CHAMELEON_SOURCES_TARGETS};chameleon_include" CACHE INTERNAL "List of targets of sources")
# Installation
# ------------
......
......@@ -105,6 +105,11 @@ set(RUNTIME_SRCS
${RUNTIME_SRCS_GENERATED}
)
# Force generation of sources
# ---------------------------
add_custom_target(parsec_sources ALL SOURCES ${RUNTIME_SRCS})
set(CHAMELEON_SOURCES_TARGETS "${CHAMELEON_SOURCES_TARGETS};runtime_parsec_include;parsec_sources" CACHE INTERNAL "List of targets of sources")
# Add library
# -----------
add_library(chameleon_parsec ${RUNTIME_SRCS})
......
......@@ -106,6 +106,11 @@ set(RUNTIME_SRCS
${RUNTIME_SRCS_GENERATED}
)
# Force generation of sources
# ---------------------------
add_custom_target(quark_sources ALL SOURCES ${RUNTIME_SRCS})
set(CHAMELEON_SOURCES_TARGETS "${CHAMELEON_SOURCES_TARGETS};runtime_quark_include;quark_sources" CACHE INTERNAL "List of targets of sources")
# Add library
# -----------
add_library(chameleon_quark ${RUNTIME_SRCS})
......
......@@ -122,6 +122,11 @@ set(RUNTIME_SRCS
${RUNTIME_SRCS_GENERATED}
)
# Force generation of sources
# ---------------------------
add_custom_target(starpu_sources ALL SOURCES ${RUNTIME_SRCS})
set(CHAMELEON_SOURCES_TARGETS "${CHAMELEON_SOURCES_TARGETS};runtime_starpu_include;starpu_sources" CACHE INTERNAL "List of targets of sources")
# Add library
# -----------
add_library(chameleon_starpu ${RUNTIME_SRCS})
......
......@@ -44,6 +44,7 @@ precisions_rules_py(TESTING_HDRS_GENERATED "${ZHDR}"
PRECISIONS "s;d;c;z;ds;zc" )
add_custom_target(testing_include ALL SOURCES ${TESTING_HDRS_GENERATED})
set(CHAMELEON_SOURCES_TARGETS "${CHAMELEON_SOURCES_TARGETS};testing_include" CACHE INTERNAL "List of targets of sources")
# Generate morse testing sources for all possible precisions
# ----------------------------------------------------------
......@@ -168,6 +169,15 @@ foreach(_precision ${CHAMELEON_PRECISION} )
endforeach()
# Force generation of sources
# ---------------------------
set(TESTING_SRCS)
foreach(_precision ${CHAMELEON_PRECISION})
list(APPEND TESTING_SRCS ${${_precision}SRC_GENERATED})
endforeach()
add_custom_target(testing_sources ALL SOURCES ${TESTING_SRCS})
set(CHAMELEON_SOURCES_TARGETS "${CHAMELEON_SOURCES_TARGETS};testing_sources" CACHE INTERNAL "List of targets of sources")
# Copy python scripts to use test drivers
# ---------------------------------------
# Copy launcher
......
......@@ -45,6 +45,7 @@ set(TIMING_AUX_HDRS
# Force generation of headers
# ---------------------------
add_custom_target(timing_include ALL SOURCES ${TIMING_AUX_HDRS})
set(CHAMELEON_SOURCES_TARGETS "${CHAMELEON_SOURCES_TARGETS};timing_include" CACHE INTERNAL "List of targets of sources")
if (NOT CHAMELEON_SIMULATION)
# Generate the morse auxiliary sources for all possible precisions
......@@ -57,9 +58,7 @@ if (NOT CHAMELEON_SIMULATION)
precisions_rules_py(TIMING_AUX_SRCS_GENERATED "${ZSRC}"
PRECISIONS "${CHAMELEON_PRECISION}")
set(TIMING_SRCS
${TIMING_AUX_SRCS_GENERATED}
)
set(TIMING_SRCS ${TIMING_AUX_SRCS_GENERATED})
# Create libchameleon_timing.a
# -----------------------------
......@@ -150,6 +149,11 @@ endif(NOT CHAMELEON_SIMULATION)
precisions_rules_py(TIMINGS "${ZSRC}"
PRECISIONS "${CHAMELEON_PRECISION}")
# Force generation of sources
# ---------------------------
add_custom_target(timing_sources ALL SOURCES ${TIMINGS})
set(CHAMELEON_SOURCES_TARGETS "${CHAMELEON_SOURCES_TARGETS};timing_sources" CACHE INTERNAL "List of targets of sources")
# Add include and link directories
# --------------------------------
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment