diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-09-21 11:15:36 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:07:18 -0300 |
commit | 081600a9e5ac4da3eabe97169c9865af793f9c80 (patch) | |
tree | 8f4ca8c6d0b327cf39d24b93a91cc527df03f82a | |
parent | 602bbf5a86c1c5c9c84535539b4ef617c120c3af (diff) |
Add missing CMakeLists.txt file
-rw-r--r-- | generator/CMakeLists.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/generator/CMakeLists.txt b/generator/CMakeLists.txt new file mode 100644 index 000000000..89b2ef757 --- /dev/null +++ b/generator/CMakeLists.txt @@ -0,0 +1,32 @@ +project(generators) + +set(shiboken_SRC +cppgenerator.cpp +headergenerator.cpp +overloaddata.cpp +shiboken.cpp +shibokengenerator.cpp +) + +include_directories(${CMAKE_CURRENT_SOURCE_DIR} + ${APIEXTRACTOR_INCLUDE_DIR} + ${GENERATORRUNNER_INCLUDE_DIR} + ${QT_INCLUDE_DIR} + ${QT_QTCORE_INCLUDE_DIR}) + +add_library(shiboken_generator SHARED ${shiboken_SRC}) +set_property(TARGET shiboken_generator PROPERTY PREFIX "") + +target_link_libraries(shiboken_generator + ${APIEXTRACTOR_LIBRARY} + ${GENERATORRUNNER_LIBRARY} + ${QT_QTCORE_LIBRARY}) + +add_executable(shiboken main.cpp) +set_target_properties(shiboken PROPERTIES OUTPUT_NAME shiboken${shiboken_SUFFIX}) +target_link_libraries(shiboken ${QT_QTCORE_LIBRARY}) + +add_dependencies(shiboken shiboken_generator) + +install(TARGETS shiboken_generator DESTINATION "${GENERATORRUNNER_PLUGIN_DIR}") +install(TARGETS shiboken DESTINATION bin) |