Move dynutil/h to common/h; move common/h to common/src. Update CMakeLists.txt
[dyninst.git] / symlite / CMakeLists.txt
1 # CMake configuration for symlite directory
2
3 if (NOT UNIX)
4   return()
5 endif()
6
7 include_directories (
8   ${PROJECT_SOURCE_DIR}/symlite/src
9   )
10
11 set (SRC_LIST
12      src/SymLite-elf.C
13   )
14
15 add_library (symLite ${SRC_LIST})
16 FILE (GLOB headers "h/*.h")
17 set_target_properties (symLite PROPERTIES PUBLIC_HEADER "${headers}")
18
19 target_link_libraries (symLite ${LIBELF_LIBRARIES})
20
21 INSTALL (TARGETS symLite
22         EXPORT dyninst
23         LIBRARY DESTINATION ${INSTALL_LIB_DIR}
24         PUBLIC_HEADER DESTINATION ${INSTALL_INCLUDE_DIR})
25