Changeset 20076
- Timestamp:
- 04/12/21 20:35:02 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/CMakeLists.txt
r20074 r20076 51 51 52 52 PROJECT(fact++ VERSION ${VERSION}) 53 54 # ======== For config.h.in ========= 55 SET(PACKAGE_MAINTAINER "Thomas Bretz") 56 SET(PACKAGE_BUGREPORT "tbretz@physik.rwth-aachen.de") 57 SET(PACKAGE_URL "https://www.fact-project.org") 53 58 54 59 # ************************************* … … 520 525 -DPACKAGE_STRING=\\\"FACT++\\\" \ 521 526 -DPACKAGE_URL=\\\"${PACKAGE_URL}\\\" \ 522 -DPACKAGE_BUGREPORT=\\\"${PACKAGE_BUGREPORT}\\\"" 527 -DPACKAGE_BUGREPORT=\\\"${PACKAGE_BUGREPORT}\\\" \ 528 -DPACKAGE_INSTALL_SYSCONFDIR=\\\"${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_SYSCONFDIR}\\\"" 523 529 ) 524 530 … … 531 537 # Flags required for Dim 532 538 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pedantic -DMIPSEL -DPROTOCOL=1 -Dunix -Dlinux") 533 534 535 # ======== For config.h.in =========536 SET(PACKAGE_MAINTAINER "Thomas Bretz")537 SET(PACKAGE_BUGREPORT "tbretz@physik.rwth-aachen.de")538 SET(PACKAGE_URL "https://www.fact-project.org")539 539 540 540 … … 1388 1388 1389 1389 # Prepare the file for build interface 1390 SET(INSTALL_PREFIX ${CMAKE_BINARY_DIR}) 1390 SET(PROJECT_ETCDIR ${CMAKE_BINARY_DIR}) 1391 SET(PROJECT_LOGDIR ${CMAKE_BINARY_DIR}/log) 1392 FILE(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/log) 1391 1393 CONFIGURE_FILE(fact++.rc.in fact++.rc @ONLY) 1392 1394 1393 FILE(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/rc) 1394 FILE(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/log) 1395 #FILE(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/rc) 1395 1396 1396 1397 IF(NOT CMAKE_INSTALL_PREFIX STREQUAL CMAKE_INSTALL_PREFIX_DEFAULT) 1397 1398 # Prepare default fact++.rc for installation 1399 SET(INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}) 1400 CONFIGURE_FILE(fact++.rc.in fact++rc.install @ONLY) 1401 INSTALL(FILES ${CMAKE_BINARY_DIR}/fact++rc.install DESTINATION ${CMAKE_INSTALL_BINDIR} RENAME fact++.rc) 1402 1403 # Create empty directories during installation 1398 SET(PROJECT_ETCDIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_SYSCONFDIR}) 1399 SET(PROJECT_LOGDIR ${CMAKE_INSTALL_PREFIX}/log) 1404 1400 INSTALL(DIRECTORY "log" DESTINATION ${CMAKE_INSTALL_PREFIX}) 1405 INSTALL(DIRECTORY "rc" DESTINATION ${CMAKE_INSTALL_PREFIX}) 1406 1407 INSTALL(CODE "MESSAGE(STATUS \"Preparing environment.\")") 1408 # This is just for convenience as the fact++.rc is read from the directory of the binary itself 1409 INSTALL(CODE "EXECUTE_PROCESS(COMMAND ln -sf ${CMAKE_INSTALL_BINDIR}/fact++.rc WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX})") 1410 ENDIF() 1401 ELSE() 1402 SET(PROJECT_ETCDIR ${CMAKE_INSTALL_SYSCONFDIR}/fact++) 1403 SET(PROJECT_LOGDIR ${CMAKE_INSTALL_LOCALSTATEDIR}/log/fact++) 1404 INSTALL(DIRECTORY "fact++" DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}) 1405 INSTALL(DIRECTORY "log/fact++" DESTINATION ${CMAKE_INSTALL_LOCALSTATEDIR}) 1406 ENDIF() 1407 1408 # Prepare default fact++.rc for installation 1409 #SET(INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}) 1410 CONFIGURE_FILE(fact++.rc.in fact++rc.install @ONLY) 1411 INSTALL(FILES ${CMAKE_BINARY_DIR}/fact++rc.install DESTINATION ${CMAKE_INSTALL_SYSCONFDIR} RENAME fact++.rc) 1412 1413 # Create empty directories during installation 1411 1414 1412 1415
Note:
See TracChangeset
for help on using the changeset viewer.