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