Documentation file cleanup.
[dyninst.git] / dynC_API / CMakeLists.txt
1
2 file(GLOB SRC_LIST "src/*.C")
3
4 include_directories(h 
5   src 
6   ${PROJECT_SOURCE_DIR}/dyninstAPI/src
7   ${PROJECT_SOURCE_DIR}/proccontrol/h
8 )
9
10 set_source_files_properties(${SRC_LIST} PROPERTIES LANGUAGE CXX)
11 add_definitions(-DDYNC_EXPORTS)
12 add_library(dynC_API ${SRC_LIST})
13 add_library(dynC_API_static STATIC ${SRC_LIST})
14 file (GLOB headers "h/*.h")
15
16 set_target_properties(dynC_API dynC_API_static PROPERTIES PUBLIC_HEADER "${headers}")
17
18 target_link_private_libraries (dynC_API dyninstAPI)
19
20 install(TARGETS dynC_API dynC_API_static
21                 EXPORT DynCTargets
22                 RUNTIME DESTINATION ${INSTALL_LIB_DIR}
23                 LIBRARY DESTINATION ${INSTALL_LIB_DIR}          
24                 ARCHIVE DESTINATION ${INSTALL_LIB_DIR}
25                 PUBLIC_HEADER DESTINATION ${INSTALL_INCLUDE_DIR})
26