24 lines
636 B
CMake
24 lines
636 B
CMake
#
|
|
# Set up asp_mic libraries for the sample app.
|
|
#
|
|
# To build with asp_mic, run the following command,
|
|
# cmake <path-to-source>
|
|
# -DASPMIC=ON
|
|
# -DASPMIC_LIB_PATH=<path-to-asp_mic-lib>
|
|
# -DASPMIC_INCLUDE_DIR=<path-to-asp_mic-include-dir>
|
|
#
|
|
|
|
option(ASPMIC "Enable asp_mic for the sample app." OFF)
|
|
set(ASPMIC_INCLUDE_DIR "" CACHE PATH "asp_mic include directory.")
|
|
|
|
mark_as_dependent(ASPMIC_INCLUDE_DIR ASPMIC)
|
|
|
|
if(ASPMIC)
|
|
if(NOT ASPMIC_INCLUDE_DIR)
|
|
message(FATAL_ERROR "Must pass include dir path of asp_mic to enable it.")
|
|
return()
|
|
endif()
|
|
|
|
add_definitions("-DASPMIC")
|
|
endif()
|