Changeset 19883
- Timestamp:
- 12/11/19 20:09:33 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/CMakeLists.txt
r19855 r19883 166 166 FIND_PACKAGE(Nova REQUIRED) 167 167 168 FIND_PACKAGE(Highlight) 169 IF (HIGHLIGHT_FOUND) 170 ADD_DEFINITIONS(-DHAVE_HIGHLIGHT) 171 ENDIF() 172 173 168 174 #INCLUDE_DIRECTORIES("/usr/include/mysql") 169 175 # dbus-1 dbus-glib-1 … … 306 312 SET(ROOTVER ${ROOT_VERSION} CACHE INTERNAL "Internal variable to check for consistency of root version") 307 313 314 ADD_DEFINITIONS(-DHAVE_ROOT) 315 308 316 ENDIF(NOT NO_ROOT AND NOT VIEWER_ONLY) 309 317 … … 361 369 "${CMAKE_CXX_FLAGS} \ 362 370 -D_REENTRANT -D__LINUX__ \ 363 -DHAVE_ZLIB -DHAVE_ ROOT -DHAVE_V8 -DHAVE_SQL -DHAVE_NOVA -DHAVE_FITS -DPRESET_OBSERVATORY=k${OBSERVATORY} \371 -DHAVE_ZLIB -DHAVE_V8 -DHAVE_SQL -DHAVE_NOVA -DHAVE_FITS -DPRESET_OBSERVATORY=k${OBSERVATORY} \ 364 372 -DMARSVER=\\\"${VERSION}\\\" \ 365 373 -DPACKAGE_VERSION=\\\"${VERSION}\\\" \ … … 559 567 560 568 MACRO(MANPAGE program description) 561 # https://samthursfield.wordpress.com/2015/11/21/cmake-dependencies-between-targets-and-files-and-custom-commands/562 IF (HELP2MAN_EXECUTABLE AND ROFF2HTML_EXECUTABLE AND ROFF2PDF_EXECUTABLE AND GROFF_EXECUTABLE)569 # https://samthursfield.wordpress.com/2015/11/21/cmake-dependencies-between-targets-and-files-and-custom-commands/ 570 IF (HELP2MAN_EXECUTABLE AND ROFF2HTML_EXECUTABLE AND ROFF2PDF_EXECUTABLE AND GROFF_EXECUTABLE) 563 571 ADD_CUSTOM_COMMAND( 564 572 OUTPUT … … 587 595 588 596 INSTALL(FILES ${PROJECT_BINARY_DIR}/man1/${program}.1 DESTINATION "${CMAKE_INSTALL_MANDIR}/man1") 589 ENDIF()597 ENDIF() 590 598 ENDMACRO() 591 599 600 601 # ******************************************************** 602 # ********************* Resources ************************ 603 # ******************************************************** 604 605 FILE(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/res) 606 607 FUNCTION(ADD_RESOURCES) 608 FOREACH(resource ${ARGV}) 609 STRING(MAKE_C_IDENTIFIER ${resource} identifier) 610 ADD_CUSTOM_COMMAND( 611 OUTPUT "${PROJECT_BINARY_DIR}/res/${identifier}.o" 612 COMMAND ${CMAKE_LINKER} --relocatable --format binary --output "${PROJECT_BINARY_DIR}/res/${identifier}.o" ${resource} 613 DEPENDS ${resource} 614 WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} 615 ) 616 ENDFOREACH() 617 ENDFUNCTION() 592 618 593 619 … … 663 689 MANPAGE(calcsourcemc "") 664 690 ENDIF() 691 692 ADD_EXECUTABLE(spectrum src/spectrum.cc src/WindowLog.cc res/spectrum_data_sql.o res/spectrum_simulation_sql.o res/spectrum_analysis_sql.o) 693 TARGET_LINK_LIBRARIES(spectrum Threads::Threads ${CURSES_LIBRARIES} ${HIGHLIGHT_LIBRARY} ${HELP++LIBS} ${ROOT_LIBRARIES}) 694 ADD_RESOURCES(spectrum/analysis.sql spectrum/data.sql spectrum/simulation.sql) 695 MANPAGE(spectrum "") 665 696 666 697 ADD_EXECUTABLE(getevent src/getevent.cc)
Note:
See TracChangeset
for help on using the changeset viewer.