2014-10-14 19:15:22 -06:00
|
|
|
add_custom_command(OUTPUT dispatch.c ${PROJECT_SOURCE_DIR}/icd/common/icd-dispatch-table.h
|
2014-08-03 09:31:26 +08:00
|
|
|
COMMAND ${PROJECT_SOURCE_DIR}/xgl-generate.py loader > dispatch.c
|
2014-10-14 19:15:22 -06:00
|
|
|
COMMAND ${PROJECT_SOURCE_DIR}/xgl-generate.py icd-dispatch-table > ${PROJECT_SOURCE_DIR}/icd/common/icd-dispatch-table.h
|
2014-08-03 09:31:26 +08:00
|
|
|
DEPENDS ${PROJECT_SOURCE_DIR}/xgl-generate.py
|
|
|
|
${PROJECT_SOURCE_DIR}/xgl.py)
|
2014-10-14 19:15:22 -06:00
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
)
|
2014-08-03 09:31:26 +08:00
|
|
|
|
|
|
|
add_library(XGL SHARED loader.c dispatch.c)
|
2014-08-01 11:21:23 +08:00
|
|
|
set_target_properties(XGL PROPERTIES SOVERSION 0)
|
|
|
|
target_link_libraries(XGL -ldl -lpthread)
|