Commit 70b66d99 authored by Meriadeg Perrinel's avatar Meriadeg Perrinel
Browse files

update code for cpack working

parent ba0887fd
......@@ -266,10 +266,6 @@ add_custom_command(TARGET ${PROJECT_NAME} PRE_BUILD
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h"
"${CMAKE_BINARY_DIR}")
set(${PROJECT_NAME}_HEADERS
${${PROJECT_NAME}_HEADERS}
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h")
## #################################################################
## Source file layout in development environments like Visual Studio
## #################################################################
......@@ -286,6 +282,10 @@ foreach(header ${${PROJECT_NAME}_HEADERS})
set(${PROJECT_NAME}_HEADERS_QTS "${${PROJECT_NAME}_HEADERS_QTS}" ${h})
endforeach(header)
set(${PROJECT_NAME}_HEADERS
${${PROJECT_NAME}_HEADERS}
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h")
install(FILES ${${PROJECT_NAME}_HEADERS} DESTINATION include/${PROJECT_NAME})
install(FILES ${${PROJECT_NAME}_HEADERS_QTS} DESTINATION include/${PROJECT_NAME})
install(TARGETS ${PROJECT_NAME}
......
......@@ -201,9 +201,6 @@ add_custom_command(TARGET ${PROJECT_NAME} PRE_BUILD
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h"
"${CMAKE_BINARY_DIR}")
set(${PROJECT_NAME}_HEADERS
${${PROJECT_NAME}_HEADERS}
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h")
## #################################################################
## Handling of generated script modules
......@@ -239,6 +236,12 @@ foreach(header ${${PROJECT_NAME}_HEADERS})
set(${PROJECT_NAME}_HEADERS_QTS "${${PROJECT_NAME}_HEADERS_QTS}" ${h})
endforeach(header)
set(${PROJECT_NAME}_HEADERS
${${PROJECT_NAME}_HEADERS}
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h")
#install(FILES ${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h DESTINATION include/${PROJECT_NAME})
install(FILES ${dtk_BINARY_DIR}/dtkConfig.h DESTINATION include/${PROJECT_NAME})
install(FILES ${${PROJECT_NAME}_HEADERS} DESTINATION include/${PROJECT_NAME})
install(FILES ${${PROJECT_NAME}_HEADERS_QTS} DESTINATION include/${PROJECT_NAME})
......
......@@ -87,10 +87,6 @@ add_custom_command(TARGET ${PROJECT_NAME} PRE_BUILD
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h"
"${CMAKE_BINARY_DIR}")
set(${PROJECT_NAME}_HEADERS
${${PROJECT_NAME}_HEADERS}
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h")
## #################################################################
## Source file layout in development environments like Visual Studio
## #################################################################
......@@ -107,6 +103,10 @@ foreach(header ${${PROJECT_NAME}_HEADERS})
set(${PROJECT_NAME}_HEADERS_QTS "${${PROJECT_NAME}_HEADERS_QTS}" ${h})
endforeach(header)
set(${PROJECT_NAME}_HEADERS
${${PROJECT_NAME}_HEADERS}
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h")
install(FILES ${${PROJECT_NAME}_HEADERS} DESTINATION include/${PROJECT_NAME})
install(FILES ${${PROJECT_NAME}_HEADERS_QTS} DESTINATION include/${PROJECT_NAME})
install(FILES ${${PROJECT_NAME}_MODULES} DESTINATION modules)
......
......@@ -218,10 +218,6 @@ add_custom_command(TARGET ${PROJECT_NAME} PRE_BUILD
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h"
"${CMAKE_BINARY_DIR}")
set(${PROJECT_NAME}_HEADERS
${${PROJECT_NAME}_HEADERS}
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h")
## #################################################################
## Source file layout in development environments like Visual Studio
## #################################################################
......@@ -238,6 +234,10 @@ foreach(header ${${PROJECT_NAME}_HEADERS})
set(${PROJECT_NAME}_HEADERS_QTS "${${PROJECT_NAME}_HEADERS_QTS}" ${h})
endforeach(header)
set(${PROJECT_NAME}_HEADERS
${${PROJECT_NAME}_HEADERS}
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h")
install(FILES ${${PROJECT_NAME}_HEADERS} DESTINATION include/${PROJECT_NAME})
install(FILES ${${PROJECT_NAME}_HEADERS_QTS} DESTINATION include/${PROJECT_NAME})
install(TARGETS ${PROJECT_NAME}
......
......@@ -164,10 +164,6 @@ add_custom_command(TARGET ${PROJECT_NAME} PRE_BUILD
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h"
"${CMAKE_BINARY_DIR}")
set(${PROJECT_NAME}_HEADERS
${${PROJECT_NAME}_HEADERS}
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h")
## #################################################################
## Source file layout in development environments like Visual Studio
## #################################################################
......@@ -184,6 +180,10 @@ foreach(header ${${PROJECT_NAME}_HEADERS})
set(${PROJECT_NAME}_HEADERS_QTS "${${PROJECT_NAME}_HEADERS_QTS}" ${h})
endforeach(header)
set(${PROJECT_NAME}_HEADERS
${${PROJECT_NAME}_HEADERS}
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h")
install(FILES ${${PROJECT_NAME}_HEADERS} DESTINATION include/${PROJECT_NAME})
install(FILES ${${PROJECT_NAME}_HEADERS_QTS} DESTINATION include/${PROJECT_NAME})
install(TARGETS ${PROJECT_NAME}
......
......@@ -81,10 +81,6 @@ add_custom_command(TARGET ${PROJECT_NAME} PRE_BUILD
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h"
"${CMAKE_BINARY_DIR}")
set(${PROJECT_NAME}_HEADERS
${${PROJECT_NAME}_HEADERS}
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h")
## #################################################################
## Source file layout in development environments like Visual Studio
## #################################################################
......@@ -101,6 +97,10 @@ foreach(header ${${PROJECT_NAME}_HEADERS})
set(${PROJECT_NAME}_HEADERS_QTS "${${PROJECT_NAME}_HEADERS_QTS}" ${h})
endforeach(header)
set(${PROJECT_NAME}_HEADERS
${${PROJECT_NAME}_HEADERS}
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h")
install(FILES ${${PROJECT_NAME}_HEADERS} DESTINATION include/${PROJECT_NAME})
install(FILES ${${PROJECT_NAME}_HEADERS_QTS} DESTINATION include/${PROJECT_NAME})
install(TARGETS ${PROJECT_NAME}
......
......@@ -94,10 +94,6 @@ add_custom_command(TARGET ${PROJECT_NAME} PRE_BUILD
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h"
"${CMAKE_BINARY_DIR}")
set(${PROJECT_NAME}_HEADERS
${${PROJECT_NAME}_HEADERS}
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h")
## #################################################################
## Source file layout in development environments like Visual Studio
## #################################################################
......@@ -114,6 +110,10 @@ foreach(header ${${PROJECT_NAME}_HEADERS})
set(${PROJECT_NAME}_HEADERS_QTS "${${PROJECT_NAME}_HEADERS_QTS}" ${h})
endforeach(header)
set(${PROJECT_NAME}_HEADERS
${${PROJECT_NAME}_HEADERS}
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h")
install(FILES ${${PROJECT_NAME}_HEADERS} DESTINATION include/${PROJECT_NAME})
install(FILES ${${PROJECT_NAME}_HEADERS_QTS} DESTINATION include/${PROJECT_NAME})
install(TARGETS ${PROJECT_NAME}
......
......@@ -90,10 +90,6 @@ add_custom_command(TARGET ${PROJECT_NAME} PRE_BUILD
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h"
"${CMAKE_BINARY_DIR}")
set(${PROJECT_NAME}_HEADERS
${${PROJECT_NAME}_HEADERS}
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h")
## #################################################################
## Source file layout in development environments like Visual Studio
## #################################################################
......@@ -111,6 +107,10 @@ foreach(header ${${PROJECT_NAME}_HEADERS})
set(${PROJECT_NAME}_HEADERS_QTS "${${PROJECT_NAME}_HEADERS_QTS}" ${h})
endforeach(header)
set(${PROJECT_NAME}_HEADERS
${${PROJECT_NAME}_HEADERS}
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h")
install(FILES ${${PROJECT_NAME}_HEADERS} DESTINATION include/${PROJECT_NAME})
install(FILES ${${PROJECT_NAME}_HEADERS_QTS} DESTINATION include/${PROJECT_NAME})
install(TARGETS ${PROJECT_NAME}
......
......@@ -108,10 +108,6 @@ add_custom_command(TARGET ${PROJECT_NAME} PRE_BUILD
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h"
"${CMAKE_BINARY_DIR}")
set(${PROJECT_NAME}_HEADERS
${${PROJECT_NAME}_HEADERS}
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h")
## #################################################################
## Source file layout in development environments like Visual Studio
## #################################################################
......@@ -128,6 +124,10 @@ foreach(header ${${PROJECT_NAME}_HEADERS})
set(${PROJECT_NAME}_HEADERS_QTS "${${PROJECT_NAME}_HEADERS_QTS}" ${h})
endforeach(header)
set(${PROJECT_NAME}_HEADERS
${${PROJECT_NAME}_HEADERS}
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h")
install(FILES ${${PROJECT_NAME}_HEADERS} DESTINATION include/${PROJECT_NAME})
install(FILES ${${PROJECT_NAME}_HEADERS_QTS} DESTINATION include/${PROJECT_NAME})
install(TARGETS ${PROJECT_NAME}
......
......@@ -182,10 +182,6 @@ add_custom_command(TARGET ${PROJECT_NAME} PRE_BUILD
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h"
"${CMAKE_BINARY_DIR}")
set(${PROJECT_NAME}_HEADERS
${${PROJECT_NAME}_HEADERS}
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h")
## #################################################################
## Handling of generated script modules
## #################################################################
......@@ -229,6 +225,11 @@ foreach(header ${${PROJECT_NAME}_HEADERS})
set(${PROJECT_NAME}_HEADERS_QTS "${${PROJECT_NAME}_HEADERS_QTS}" ${h})
endforeach(header)
set(${PROJECT_NAME}_HEADERS
${${PROJECT_NAME}_HEADERS}
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h")
install(FILES ${${PROJECT_NAME}_HEADERS} DESTINATION include/${PROJECT_NAME})
install(FILES ${${PROJECT_NAME}_HEADERS_QTS} DESTINATION include/${PROJECT_NAME})
install(FILES ${${PROJECT_NAME}_MODULES} DESTINATION modules)
......
......@@ -87,10 +87,6 @@ add_custom_command(TARGET ${PROJECT_NAME} PRE_BUILD
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h"
"${CMAKE_BINARY_DIR}")
set(${PROJECT_NAME}_HEADERS
${${PROJECT_NAME}_HEADERS}
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h")
## #################################################################
## Source file layout in development environments like Visual Studio
## #################################################################
......@@ -107,6 +103,11 @@ foreach(header ${${PROJECT_NAME}_HEADERS})
set(${PROJECT_NAME}_HEADERS_QTS "${${PROJECT_NAME}_HEADERS_QTS}" ${h})
endforeach(header)
set(${PROJECT_NAME}_HEADERS
${${PROJECT_NAME}_HEADERS}
"${${PROJECT_NAME}_BINARY_DIR}/${PROJECT_NAME}Export.h")
install(FILES ${${PROJECT_NAME}_HEADERS} DESTINATION include/${PROJECT_NAME})
install(FILES ${${PROJECT_NAME}_HEADERS_QTS} DESTINATION include/${PROJECT_NAME})
install(TARGETS ${PROJECT_NAME}
......
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