- Make get_dependency_version found the print_${LIB}_version.cpp, even
if the lib is compiled separately.
- Rename FindQt3.cmake to FindQt3-patched.cmake and Qt3Macros to
Qt3Macros-patched.
- Make CGAL-Qt3 compilable separately.
- Fix all commited CMakeLists.txt:
- use Qt3-patched and Qt3Macros-patched, and s/QT_/QT3_/
- add a comment about FindQt3-patched,
- wrap target creation with if(CGAL_FOUND AND QT3_FOUND)/else/endif
- Modified cgal_create_cmake_script
34 lines
1.1 KiB
CMake
34 lines
1.1 KiB
CMake
macro(create_single_source_cgal_qt3_program first )
|
|
|
|
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${first})
|
|
set( all ${CMAKE_CURRENT_SOURCE_DIR}/${first} )
|
|
|
|
foreach( i ${ARGN} )
|
|
set( all ${all} ${CMAKE_CURRENT_SOURCE_DIR}/${i} )
|
|
endforeach()
|
|
|
|
get_filename_component(exe_name ${first} NAME_WE)
|
|
|
|
QT3_AUTOMOC( ${all} )
|
|
|
|
# Make sure the compiler can find generated .moc files
|
|
include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
|
|
include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
include_directories( ${QT3_INCLUDE_DIR} )
|
|
|
|
add_executable (${exe_name} ${all})
|
|
|
|
add_to_cached_list( CGAL_EXECUTABLES ${exe_name} )
|
|
|
|
# Link the executable to CGAL and third-party libraries
|
|
if ( AUTO_LINK_ENABLED )
|
|
target_link_libraries(${exe_name} ${CGAL_3RD_PARTY_LIBRARIES} ${QT3_LIBRARIES} )
|
|
else()
|
|
target_link_libraries(${exe_name} ${CGAL_LIBRARIES} ${CGAL_QT_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} ${QT3_LIBRARIES})
|
|
endif()
|
|
|
|
endif(EXISTS ${first})
|
|
|
|
endmacro()
|