Mercurial > projects > qtd
comparison CMakeLists.txt @ 51:2bd596a4b984
CMake: qtd -> qt in install path of di files.
author | SokoL_SD |
---|---|
date | Mon, 18 May 2009 14:25:52 +0000 |
parents | cc557203146c |
children | 63c31e221118 |
comparison
equal
deleted
inserted
replaced
50:cc557203146c | 51:2bd596a4b984 |
---|---|
397 foreach(d_source ${d_version_files}) | 397 foreach(d_source ${d_version_files}) |
398 set(d_sources ${d_sources} ${CMAKE_SOURCE_DIR}/qt/d${D_VERSION}/qt/${d_source}.d) | 398 set(d_sources ${d_sources} ${CMAKE_SOURCE_DIR}/qt/d${D_VERSION}/qt/${d_source}.d) |
399 if(NOT GENERATE_DI_FILES) | 399 if(NOT GENERATE_DI_FILES) |
400 get_filename_component(path ${d_source}.d PATH) | 400 get_filename_component(path ${d_source}.d PATH) |
401 get_filename_component(name ${d_source}.d NAME_WE) | 401 get_filename_component(name ${d_source}.d NAME_WE) |
402 install(FILES ${CMAKE_SOURCE_DIR}/qt/d${D_VERSION}/qt/${d_source}.d DESTINATION include/d/qtd/${path} RENAME ${name}.di) | 402 install(FILES ${CMAKE_SOURCE_DIR}/qt/d${D_VERSION}/qt/${d_source}.d DESTINATION include/d/qt/${path} RENAME ${name}.di) |
403 endif(NOT GENERATE_DI_FILES) | 403 endif(NOT GENERATE_DI_FILES) |
404 endforeach(d_source) | 404 endforeach(d_source) |
405 foreach(d_source ${d_files}) | 405 foreach(d_source ${d_files}) |
406 set(d_sources ${d_sources} ${CMAKE_SOURCE_DIR}/qt/${d_source}.d) | 406 set(d_sources ${d_sources} ${CMAKE_SOURCE_DIR}/qt/${d_source}.d) |
407 if(NOT GENERATE_DI_FILES) | 407 if(NOT GENERATE_DI_FILES) |
408 get_filename_component(path ${d_source}.d PATH) | 408 get_filename_component(path ${d_source}.d PATH) |
409 get_filename_component(name ${d_source}.d NAME_WE) | 409 get_filename_component(name ${d_source}.d NAME_WE) |
410 install(FILES ${CMAKE_SOURCE_DIR}/qt/${d_source}.d DESTINATION include/d/qtd/${path} RENAME ${name}.di) | 410 install(FILES ${CMAKE_SOURCE_DIR}/qt/${d_source}.d DESTINATION include/d/qt/${path} RENAME ${name}.di) |
411 endif(NOT GENERATE_DI_FILES) | 411 endif(NOT GENERATE_DI_FILES) |
412 endforeach(d_source) | 412 endforeach(d_source) |
413 foreach(d_source ${d_generated_files}) | 413 foreach(d_source ${d_generated_files}) |
414 set(d_sources ${d_sources} ${CMAKE_BINARY_DIR}/qt/${d_source}.d) | 414 set(d_sources ${d_sources} ${CMAKE_BINARY_DIR}/qt/${d_source}.d) |
415 if(NOT GENERATE_DI_FILES) | 415 if(NOT GENERATE_DI_FILES) |
416 get_filename_component(path ${d_source}.d PATH) | 416 get_filename_component(path ${d_source}.d PATH) |
417 get_filename_component(name ${d_source}.d NAME_WE) | 417 get_filename_component(name ${d_source}.d NAME_WE) |
418 install(FILES ${CMAKE_BINARY_DIR}/qt/${d_source}.d DESTINATION include/d/qtd/${path} RENAME ${name}.di) | 418 install(FILES ${CMAKE_BINARY_DIR}/qt/${d_source}.d DESTINATION include/d/qt/${path} RENAME ${name}.di) |
419 endif(NOT GENERATE_DI_FILES) | 419 endif(NOT GENERATE_DI_FILES) |
420 endforeach(d_source) | 420 endforeach(d_source) |
421 foreach (cpp_source ${cpp_files}) | 421 foreach (cpp_source ${cpp_files}) |
422 set(cpp_sources ${cpp_sources} ${CMAKE_SOURCE_DIR}/cpp/${cpp_source}.cpp) | 422 set(cpp_sources ${cpp_sources} ${CMAKE_SOURCE_DIR}/cpp/${cpp_source}.cpp) |
423 endforeach(cpp_source) | 423 endforeach(cpp_source) |
426 set(d_sources ${d_sources} ${CMAKE_BINARY_DIR}/qt/${package}/${class}.d) | 426 set(d_sources ${d_sources} ${CMAKE_BINARY_DIR}/qt/${package}/${class}.d) |
427 set(cpp_sources ${cpp_sources} ${CMAKE_BINARY_DIR}/cpp/qt_${package}/${class}_shell.cpp) | 427 set(cpp_sources ${cpp_sources} ${CMAKE_BINARY_DIR}/cpp/qt_${package}/${class}_shell.cpp) |
428 set(files_for_gen ${files_for_gen} ${CMAKE_BINARY_DIR}/cpp/qt_${package}/${class}_shell.cpp | 428 set(files_for_gen ${files_for_gen} ${CMAKE_BINARY_DIR}/cpp/qt_${package}/${class}_shell.cpp |
429 ${CMAKE_BINARY_DIR}/qt/${package}/${class}.d) | 429 ${CMAKE_BINARY_DIR}/qt/${package}/${class}.d) |
430 if(NOT GENERATE_DI_FILES) | 430 if(NOT GENERATE_DI_FILES) |
431 install(FILES ${CMAKE_BINARY_DIR}/qt/${package}/${class}.d DESTINATION include/d/qtd/${package} RENAME ${class}.di) | 431 install(FILES ${CMAKE_BINARY_DIR}/qt/${package}/${class}.d DESTINATION include/d/qt/${package} RENAME ${class}.di) |
432 install(FILES ${CMAKE_BINARY_DIR}/qt/${package}/${class}_enum.d DESTINATION include/d/qtd/${package} RENAME ${class}_enum.di OPTIONAL) | 432 install(FILES ${CMAKE_BINARY_DIR}/qt/${package}/${class}_enum.d DESTINATION include/d/qt/${package} RENAME ${class}_enum.di OPTIONAL) |
433 endif(NOT GENERATE_DI_FILES) | 433 endif(NOT GENERATE_DI_FILES) |
434 endforeach(class) | 434 endforeach(class) |
435 | 435 |
436 ## Link CPP library. | 436 ## Link CPP library. |
437 add_library(cpp_${package} SHARED ${cpp_sources}) | 437 add_library(cpp_${package} SHARED ${cpp_sources}) |