
The devel package was missing the protocol/mysql.h-file. Also, added copyright and licence files and a devel-specific description. The package target is now checked to be one of the recognized ones.
28 lines
729 B
CMake
28 lines
729 B
CMake
# Install static C headers
|
|
file(GLOB HEADERS "*.h")
|
|
foreach(var ${HEADERS})
|
|
get_filename_component(header ${var} NAME)
|
|
install_header(${header} devel)
|
|
endforeach()
|
|
|
|
# Install static C++ headers
|
|
file(GLOB HEADERS "*.hh")
|
|
foreach(var ${HEADERS})
|
|
get_filename_component(header ${var} NAME)
|
|
install_header(${header} devel)
|
|
endforeach()
|
|
|
|
# Install generated C headers
|
|
file(GLOB GENERATD_HEADERS "${CMAKE_BINARY_DIR}/include/maxscale/*.h")
|
|
foreach(var ${GENERATD_HEADERS})
|
|
install_header(${var} devel)
|
|
endforeach()
|
|
|
|
# Install generated C++ headers
|
|
file(GLOB GENERATD_HEADERS "${CMAKE_BINARY_DIR}/include/maxscale/*.hh")
|
|
foreach(var ${GENERATD_HEADERS})
|
|
install_header(${var} devel)
|
|
endforeach()
|
|
|
|
add_subdirectory(protocol)
|