aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTheofilos Intzoglou <int.teo@gmail.com>2011-10-11 15:17:46 +0300
committerTheofilos Intzoglou <int.teo@gmail.com>2011-10-11 15:17:46 +0300
commit3e42892f0c25926d682a008e551e9afc401f1fe4 (patch)
treeedbf4df9fe7e483023b0cc627e231b14e771c1d8 /src
parentMerge branch 'terietor_interegation' into cmake_port (diff)
downloadc-portage-3e42892f0c25926d682a008e551e9afc401f1fe4.tar.gz
c-portage-3e42892f0c25926d682a008e551e9afc401f1fe4.tar.bz2
c-portage-3e42892f0c25926d682a008e551e9afc401f1fe4.zip
Move option in toplevel CMakeLists.txt and changed its name to Qt4 so now we can do 'cmake -DQt4=On ..' and compile the wrapper. Also some files were omitted from the CMakeLists when building the c-portage library
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt10
-rw-r--r--src/Qt/CMakeLists.txt2
2 files changed, 5 insertions, 7 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 3fb5b8b..472f2a9 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -4,8 +4,8 @@ include_directories(${PYTHON_INCLUDE_DIRS})
link_directories(${PYTHON_LIBRARIES})
add_definitions(-std=c99)
-set(c-portage_SRCS dataconnect.c dict.c flag.c interpreter.c packageproperties.c stringlist.c)
-set(c-portage_HDRS dataconnect.h dict.h flag.h internal.h interpreter.h packageproperties.h stringlist.h)
+set(c-portage_SRCS dataconnect.c dict.c flag.c interpreter.c packageproperties.c portagesettings.c stringlist.c)
+set(c-portage_HDRS dataconnect.h dict.h flag.h internal.h interpreter.h packageproperties.h portage.h portagesettings.h stringlist.h)
add_library(c-portage SHARED ${c-portage_SRCS})
target_link_libraries(c-portage ${PYTHON_LIBRARY})
@@ -15,8 +15,6 @@ target_link_libraries(tester c-portage)
install(TARGETS c-portage DESTINATION lib)
install(FILES ${c-portage_HDRS} DESTINATION include/c-portage)
-option(CppPortage "Enable c++ wrapper for c-portage (uses Qt4)")
-
-if (CppPortage)
+if (Qt4)
add_subdirectory(Qt)
-endif(CppPortage)
+endif(Qt4)
diff --git a/src/Qt/CMakeLists.txt b/src/Qt/CMakeLists.txt
index d673e61..1ffc149 100644
--- a/src/Qt/CMakeLists.txt
+++ b/src/Qt/CMakeLists.txt
@@ -7,7 +7,7 @@ set(cpp-portage_HDRS helper.h qportage.h qportagesettings.h qpackageproperties.h
QT4_WRAP_CPP(cpp-portage_MOC_SRCS ${cpp-portage_HDRS})
-add_library(cpp-portage SHARED qportagesettings.cpp ${cpp-portage_MOC_SRCS})
+add_library(cpp-portage SHARED ${cpp-portage_SRCS} ${cpp-portage_MOC_SRCS})
target_link_libraries(cpp-portage c-portage ${QT_QTCORE_LIBRARY})
install(TARGETS cpp-portage DESTINATION lib)