diff options
author | 2011-10-09 02:37:34 +0300 | |
---|---|---|
committer | 2011-10-09 02:37:34 +0300 | |
commit | 4bcf480e940a0c74a1fb351582e81eb68359280a (patch) | |
tree | 8b1e49e4e8158075e5be654016ec81eeb5f44769 /src | |
parent | Reorganise CMakeLists so that the proper header files are installed for the a... (diff) | |
download | c-portage-4bcf480e940a0c74a1fb351582e81eb68359280a.tar.gz c-portage-4bcf480e940a0c74a1fb351582e81eb68359280a.tar.bz2 c-portage-4bcf480e940a0c74a1fb351582e81eb68359280a.zip |
Make cpp-portage a shared library, correctly identify which header
files to install and fix include paths
Diffstat (limited to 'src')
-rw-r--r-- | src/Qt/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Qt/CMakeLists.txt b/src/Qt/CMakeLists.txt index 2a19c3e..8388c30 100644 --- a/src/Qt/CMakeLists.txt +++ b/src/Qt/CMakeLists.txt @@ -1,12 +1,12 @@ find_package(Qt4 REQUIRED) -include_directories(${QT_INCLUDE_DIR} ${QT_QTCORE_INCLUDE_DIR}) +include_directories(${QT_INCLUDE_DIR} ${QT_QTCORE_INCLUDE_DIR} ..) remove_definitions(-std=c99) -set(cpp-portage_SRCS qportagesettings.cpp) -set(cpp-portage_HDRS qportagesettings.h) +set(cpp-portage_SRCS qportage.cpp qportagesettings.cpp helper.cpp) +set(cpp-portage_HDRS qportage.h qportagesettings.h helper.h) QT4_WRAP_CPP(cpp-portage_MOC_SRCS ${cpp-portage_HDRS}) -add_library(cpp-portage qportagesettings.cpp ${cpp-portage_MOC_SRCS}) +add_library(cpp-portage SHARED ${cpp-portage_SRCS} ${cpp-portage_MOC_SRCS}) install(TARGETS cpp-portage DESTINATION lib) install(FILES ${cpp-portage_HDRS} DESTINATION include/cpp-portage)
\ No newline at end of file |