diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-04-24 05:35:48 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-04-24 05:35:48 +0200 |
commit | dcd8ad63316eac672492bc18112bbbb52811c3fc (patch) | |
tree | 321ed207442ebfe9b1feb8375de03847ed2e2de3 /pcitool/CMakeLists.txt | |
parent | 5f6fb4e4e77f121e0756744df8498520d4deddb8 (diff) | |
download | pcitool-dcd8ad63316eac672492bc18112bbbb52811c3fc.tar.gz pcitool-dcd8ad63316eac672492bc18112bbbb52811c3fc.tar.bz2 pcitool-dcd8ad63316eac672492bc18112bbbb52811c3fc.tar.xz pcitool-dcd8ad63316eac672492bc18112bbbb52811c3fc.zip |
More structural changes to get ready for stand-alone event engines
Diffstat (limited to 'pcitool/CMakeLists.txt')
-rw-r--r-- | pcitool/CMakeLists.txt | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/pcitool/CMakeLists.txt b/pcitool/CMakeLists.txt index 6dc7942..1b21041 100644 --- a/pcitool/CMakeLists.txt +++ b/pcitool/CMakeLists.txt @@ -1,8 +1,32 @@ include_directories( ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/pcilib + ${FASTWRITER_INCLUDE_DIRS} ) -set(HEADERS ${HEADERS} sysinfo.h formaters.h) +link_directories( + ${FASTWRITER_LIBRARY_DIRS} + ${CMAKE_SOURCE_DIR}/pcilib +) + +if (NOT DISABLE_PCITOOL) + add_executable(pci cli.c sysinfo.c formaters.c) + set(HEADERS ${HEADERS} sysinfo.h formaters.h) + add_dependencies(pci pcitool) + target_link_libraries(pci pcilib ${FASTWRITER_LIBRARIES}) + set_target_properties(pci PROPERTIES + LINK_FLAGS ${CMAKE_THREAD_LIBS_INIT} + ) + +#set_target_properties(pci PROPERTIES +# LINK_FLAGS "-Wl,pcitool/libpcitool.a" +#) -add_library(pcitool STATIC sysinfo.c formaters.c) + if(NOT DEFINED BIN_INSTALL_DIR) + set(BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin") + endif(NOT DEFINED BIN_INSTALL_DIR) + install(TARGETS pci + DESTINATION ${BIN_INSTALL_DIR} + ) +endif (NOT DISABLE_PCITOOL) |