DynC build fix
[dyninst.git] / dynC_API / CMakeLists.txt
1
2 file(GLOB SRC_LIST "src/*.C")
3
4 include_directories(h src ../dyninstAPI/src)
5
6 set_source_files_properties(${SRC_LIST} PROPERTIES LANGUAGE CXX)
7 add_library(dynC_API ${SRC_LIST})
8 add_library(dynC_API_static STATIC ${SRC_LIST})
9 file (GLOB headers "h/*.h")
10
11 set_target_properties(dynC_API dynC_API_static PROPERTIES PUBLIC_HEADER "${headers}")
12
13 target_link_libraries (dynC_API dyninstAPI)
14
15 install(TARGETS dynC_API dynC_API_static
16                 EXPORT DyninstTargets
17                 RUNTIME DESTINATION ${INSTALL_LIB_DIR}
18                 LIBRARY DESTINATION ${INSTALL_LIB_DIR}          
19                 ARCHIVE DESTINATION ${INSTALL_LIB_DIR}
20                 PUBLIC_HEADER DESTINATION ${INSTALL_INCLUDE_DIR})
21