mirror of https://github.com/CGAL/cgal
Fix end of lines.
This commit is contained in:
parent
c63bf64dd0
commit
6ec44afb49
|
|
@ -1,14 +1,14 @@
|
||||||
macro(create_single_source_cgal_program_qt4 first )
|
macro(create_single_source_cgal_program_qt4 first )
|
||||||
|
|
||||||
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${first})
|
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${first})
|
||||||
|
|
||||||
set( all ${CMAKE_CURRENT_SOURCE_DIR}/${first} )
|
set( all ${CMAKE_CURRENT_SOURCE_DIR}/${first} )
|
||||||
|
|
||||||
foreach( i ${ARGN} )
|
foreach( i ${ARGN} )
|
||||||
set( all ${all} ${CMAKE_CURRENT_SOURCE_DIR}/${i} )
|
set( all ${all} ${CMAKE_CURRENT_SOURCE_DIR}/${i} )
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
get_filename_component(exe_name ${first} NAME_WE)
|
get_filename_component(exe_name ${first} NAME_WE)
|
||||||
|
|
||||||
# UI files (Qt Designer files)
|
# UI files (Qt Designer files)
|
||||||
qt4_wrap_ui( DT_UI_FILES ${exe_name}.ui )
|
qt4_wrap_ui( DT_UI_FILES ${exe_name}.ui )
|
||||||
|
|
@ -18,22 +18,22 @@ macro(create_single_source_cgal_program_qt4 first )
|
||||||
|
|
||||||
# use the Qt MOC preprocessor on classes that derives from QObject
|
# use the Qt MOC preprocessor on classes that derives from QObject
|
||||||
qt4_generate_moc( ${exe_name}.cpp ${exe_name}.moc )
|
qt4_generate_moc( ${exe_name}.cpp ${exe_name}.moc )
|
||||||
|
|
||||||
add_executable(${exe_name} ${all})
|
add_executable(${exe_name} ${all})
|
||||||
|
|
||||||
add_to_cached_list( CGAL_EXECUTABLE_TARGETS ${exe_name} )
|
add_to_cached_list( CGAL_EXECUTABLE_TARGETS ${exe_name} )
|
||||||
|
|
||||||
# Link the executable to CGAL and third-party libraries
|
# Link the executable to CGAL and third-party libraries
|
||||||
if ( CGAL_AUTO_LINK_ENABLED )
|
if ( CGAL_AUTO_LINK_ENABLED )
|
||||||
|
|
||||||
target_link_libraries(${exe_name} ${CGAL_3RD_PARTY_LIBRARIES} )
|
target_link_libraries(${exe_name} ${CGAL_3RD_PARTY_LIBRARIES} )
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
target_link_libraries(${exe_name} ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
|
target_link_libraries(${exe_name} ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue