aboutsummaryrefslogtreecommitdiff
blob: d673e616034da276b4d21fcccc85946275549ee2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
find_package(Qt4 REQUIRED)
include_directories(${QT_INCLUDE_DIR} ${QT_QTCORE_INCLUDE_DIR} ..)
remove_definitions(-std=c99)

set(cpp-portage_SRCS helper.cpp qportage.cpp qportagesettings.cpp qpackageproperties.cpp qlistconverter.cpp)
set(cpp-portage_HDRS helper.h qportage.h qportagesettings.h qpackageproperties.h qlistconverter.h)

QT4_WRAP_CPP(cpp-portage_MOC_SRCS ${cpp-portage_HDRS})

add_library(cpp-portage SHARED qportagesettings.cpp ${cpp-portage_MOC_SRCS})
target_link_libraries(cpp-portage c-portage ${QT_QTCORE_LIBRARY})

install(TARGETS cpp-portage DESTINATION lib)
install(FILES ${cpp-portage_HDRS} DESTINATION include/cpp-portage)

add_subdirectory(tests)