blob: 9c10387f7cbc93870fff472d66f81bfbff148128 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
find_package(Qt4 REQUIRED)
include_directories(${QT_INCLUDE_DIR} ${QT_QTCORE_INCLUDE_DIR} ${QT_QTGUI_INCLUDE_DIR})
remove_definitions(-std=c99)
set(cpp-portage-tests_SRCS qlistconverter_test.cpp qpackageproperties_test.cpp qportagesettings_test.cpp )
add_executable(QtWrapperTest test.cpp)
add_executable(QPackagepropertiesTest qpackageproperties_test.cpp)
add_executable(QPortagesettingsTest qportagesettings_test.cpp)
set(test_EXECS QtWrapperTest QPackagepropertiesTest QPortagesettingsTest)
target_link_libraries(QtWrapperTest ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
target_link_libraries(QPackagepropertiesTest ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
target_link_libraries(QPortagesettingsTest ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
install(TARGETS QtWrapperTest QPackagepropertiesTest QPortagesettingsTest DESTINATION lib)
#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)
#QT4_WRAP_CPP(cpp-portage_MOC_SRCS ${cpp-portage_HDRS})
#add_library(cpp-portage qportagesettings.cpp ${cpp-portage_MOC_SRCS})
#install(TARGETS cpp-portage DESTINATION lib)
#install(FILES ${cpp-portage_HDRS} DESTINATION include/cpp-portage)
#add_subdirectory(tests)
|