diff --git a/CMakeLists.txt b/CMakeLists.txt index fcb79e6..c04a3f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -151,7 +151,7 @@ endif () set(BLAZE_CACHE_SIZE ${BLAZE_CACHE_SIZE} CACHE STRING "Cache size of the CPU in bytes." FORCE) configure_file ("${CMAKE_CURRENT_LIST_DIR}/cmake/CacheSize.h.in" - "${CMAKE_CURRENT_LIST_DIR}/blaze/config/CacheSize.h") + "${CMAKE_CURRENT_BINARY_DIR}/blaze/config/CacheSize.h") #================================================================================================== @@ -204,7 +204,7 @@ else () endif () configure_file ("${CMAKE_CURRENT_LIST_DIR}/cmake/BLAS.h.in" - "${CMAKE_CURRENT_LIST_DIR}/blaze/config/BLAS.h") + "${CMAKE_CURRENT_BINARY_DIR}/blaze/config/BLAS.h") #================================================================================================== @@ -215,7 +215,7 @@ set(BLAZE_TRANSPOSE_FLAG "columnVector" CACHE STRING "Specify the default transp set_property(CACHE BLAZE_TRANSPOSE_FLAG PROPERTY STRINGS "columnVector;rowVector") configure_file ("${CMAKE_CURRENT_LIST_DIR}/cmake/TransposeFlag.h.in" - "${CMAKE_CURRENT_LIST_DIR}/blaze/config/TransposeFlag.h") + "${CMAKE_CURRENT_BINARY_DIR}/blaze/config/TransposeFlag.h") #================================================================================================== @@ -226,7 +226,7 @@ set(BLAZE_STORAGE_ORDER "rowMajor" CACHE STRING "Specify the default storage ord set_property(CACHE BLAZE_STORAGE_ORDER PROPERTY STRINGS "rowMajor;columnMajor") configure_file ("${CMAKE_CURRENT_LIST_DIR}/cmake/StorageOrder.h.in" - "${CMAKE_CURRENT_LIST_DIR}/blaze/config/StorageOrder.h") + "${CMAKE_CURRENT_BINARY_DIR}/blaze/config/StorageOrder.h") #================================================================================================== @@ -242,7 +242,7 @@ else () endif () configure_file ("${CMAKE_CURRENT_LIST_DIR}/cmake/Vectorization.h.in" - "${CMAKE_CURRENT_LIST_DIR}/blaze/config/Vectorization.h") + "${CMAKE_CURRENT_BINARY_DIR}/blaze/config/Vectorization.h") #================================================================================================== @@ -288,7 +288,7 @@ elseif (BLAZE_SMP_THREADS STREQUAL "HPX") endif () configure_file ("${CMAKE_CURRENT_LIST_DIR}/cmake/SMP.h.in" - "${CMAKE_CURRENT_LIST_DIR}/blaze/config/SMP.h") + "${CMAKE_CURRENT_BINARY_DIR}/blaze/config/SMP.h") #================================================================================================== @@ -304,7 +304,7 @@ else () endif () configure_file ("${CMAKE_CURRENT_LIST_DIR}/cmake/Restrict.h.in" - "${CMAKE_CURRENT_LIST_DIR}/blaze/config/Restrict.h") + "${CMAKE_CURRENT_BINARY_DIR}/blaze/config/Restrict.h") #================================================================================================== @@ -334,7 +334,7 @@ else () endif () configure_file ("${CMAKE_CURRENT_LIST_DIR}/cmake/Optimizations.h.in" - "${CMAKE_CURRENT_LIST_DIR}/blaze/config/Optimizations.h") + "${CMAKE_CURRENT_BINARY_DIR}/blaze/config/Optimizations.h") #================================================================================================== @@ -352,7 +352,7 @@ else () endif () configure_file ("${CMAKE_CURRENT_LIST_DIR}/cmake/Inline.h.in" - "${CMAKE_CURRENT_LIST_DIR}/blaze/config/Inline.h") + "${CMAKE_CURRENT_BINARY_DIR}/blaze/config/Inline.h") #================================================================================================== @@ -360,6 +360,19 @@ configure_file ("${CMAKE_CURRENT_LIST_DIR}/cmake/Inline.h.in" #================================================================================================== install(DIRECTORY blaze DESTINATION include) +install( + FILES + "${CMAKE_CURRENT_BINARY_DIR}/blaze/config/BLAS.h" + "${CMAKE_CURRENT_BINARY_DIR}/blaze/config/CacheSize.h" + "${CMAKE_CURRENT_BINARY_DIR}/blaze/config/Inline.h" + "${CMAKE_CURRENT_BINARY_DIR}/blaze/config/Optimizations.h" + "${CMAKE_CURRENT_BINARY_DIR}/blaze/config/Restrict.h" + "${CMAKE_CURRENT_BINARY_DIR}/blaze/config/SMP.h" + "${CMAKE_CURRENT_BINARY_DIR}/blaze/config/StorageOrder.h" + "${CMAKE_CURRENT_BINARY_DIR}/blaze/config/TransposeFlag.h" + "${CMAKE_CURRENT_BINARY_DIR}/blaze/config/Vectorization.h" + DESTINATION include/blaze/config +) install(TARGETS blaze EXPORT blazeTargets) configure_file(