File: CMakeLists.txt

package info (click to toggle)
mapsembler2 2.2.4%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,208 kB
  • sloc: cpp: 51,300; ansic: 13,434; sh: 483; makefile: 394; asm: 271; python: 28
file content (47 lines) | stat: -rw-r--r-- 1,776 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
################################################################################
#  HDF5 GENERATION 
################################################################################


################################################################################
#  EMPHF GENERATION 
################################################################################

# TODO: I actually just mimicked hdf5, but I'm not so sure anymore whether
# this is useful. MPHF is just #include'd, perhaps we can just not copy it? in
# that case just delete this code

IF (DEFINED use_mphf)

    ADD_SUBDIRECTORY (emphf)

    # We add a custom target for copying emphf as it is.
    add_custom_target (emphf_copyasis ALL)

    SET (EMPHF_INSTALL_INCLUDE_DIR
        ${PROJECT_BINARY_DIR}/include/${CMAKE_BUILD_TYPE}/emphf)

    # We define all the header files to be copied
    file (GLOB headerfiles ${PROJECT_SOURCE_DIR}/thirdparty/emphf/*.hpp
        ${PROJECT_SOURCE_DIR}/thirdparty/emphf/*.cpp)

    # create emphf directory
    add_custom_command (TARGET emphf_copyasis COMMAND ${CMAKE_COMMAND} -E
        make_directory ${EMPHF_INSTALL_INCLUDE_DIR})

    # We copy each header file
    foreach (header ${headerfiles})
      add_custom_command (TARGET emphf_copyasis 
          COMMAND ${CMAKE_COMMAND} -E copy_if_different ${header} ${EMPHF_INSTALL_INCLUDE_DIR}  
        )
    endforeach()
ENDIF() # WITH_MPHF

################################################################################
#  INSTALL 
################################################################################
IF (NOT DEFINED GATB_CORE_INSTALL_EXCLUDE)
    IF (DEFINED WITH_MPHF)
        INSTALL (DIRECTORY ${PROJECT_BINARY_DIR}/include/${CMAKE_BUILD_TYPE}/emphf DESTINATION include)
    ENDIF()
ENDIF ()