2010-08-14 07:00:09 +00:00
|
|
|
# This is a D app that links a C object.
|
|
|
|
#
|
|
|
|
# The linker preference of D is higher than C (or CXX), so after
|
|
|
|
# the objects are created, the D toolchain will drive linking.
|
|
|
|
#
|
2010-12-09 22:08:33 +00:00
|
|
|
# TODO
|
|
|
|
# dirty fix
|
|
|
|
# we should make the CMAKE_D_COMPILER_ID work
|
2011-05-19 04:50:07 +00:00
|
|
|
#
|
|
|
|
# This 32-bit environment check no longer needed as of dmd 2.053 on Linux
|
|
|
|
#IF("${CMAKE_BASE_NAME}" MATCHES "dmd")
|
|
|
|
# SET(CMAKE_C_FLAGS "-m32 ${CMAKE_C_FLAGS}" )
|
|
|
|
#ENDIF()
|
2010-08-14 07:00:09 +00:00
|
|
|
ADD_EXECUTABLE ( app_5 app_5.d cfunc.c )
|
|
|
|
ADD_TEST( app_5 app_5 )
|