aboutsummaryrefslogtreecommitdiff
blob: 472f2a99ead65c806b21bc045ad90391a2129e62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
find_package(PythonLibs REQUIRED)

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 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})
add_executable(tester tester.c)
target_link_libraries(tester c-portage)

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

if (Qt4)
    add_subdirectory(Qt)
endif(Qt4)