comparison CMakeLists.txt @ 225:f7dca08fc816

fix for macosx
author eldar
date Thu, 16 Jul 2009 21:39:21 +0000
parents 8aaa84d48451
children 846b89285e2b
comparison
equal deleted inserted replaced
224:7f150ad4cb5f 225:f7dca08fc816
304 install(FILES ${path}/${name}_enum.d DESTINATION include/d/${ins_path} COMPONENT qtd RENAME ${name}_enum.di OPTIONAL) 304 install(FILES ${path}/${name}_enum.d DESTINATION include/d/${ins_path} COMPONENT qtd RENAME ${name}_enum.di OPTIONAL)
305 endforeach(d_source ${d_sources}) 305 endforeach(d_source ${d_sources})
306 endif(NOT GENERATE_DI_FILES) 306 endif(NOT GENERATE_DI_FILES)
307 307
308 ## Link CPP library. 308 ## Link CPP library.
309 add_library(cpp_${package} SHARED ${cpp_sources}) 309 add_library(cpp_${package} STATIC ${cpp_sources})
310 set_property(TARGET cpp_${package} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/CMakeFiles) 310 set_property(TARGET cpp_${package} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/CMakeFiles)
311 if(CMAKE_HOST_WIN32 AND D_IS_MARS) ## TODO: Replace by SEPAREATE_CPP_PART 311 if(CMAKE_HOST_WIN32 AND D_IS_MARS) ## TODO: Replace by SEPAREATE_CPP_PART
312 else(CMAKE_HOST_WIN32 AND D_IS_MARS) 312 else(CMAKE_HOST_WIN32 AND D_IS_MARS)
313 foreach(cpp_source ${cpp_sources}) 313 foreach(cpp_source ${cpp_sources})
314 set(cpp_source ${cpp_source}) 314 set(cpp_source ${cpp_source})