summaryrefslogtreecommitdiffstats
path: root/generator/CMakeLists.txt
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-01-17 18:32:12 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2011-01-31 14:47:48 -0300
commit4c682d6121b5fa31c54655cb119d75e39d957ce1 (patch)
treedcf679f92c15b972bc9bcf026fdc0c43fbd98bc8 /generator/CMakeLists.txt
parentcf352ecf7f7414f57ee84fc020b5a27e6d021917 (diff)
downloadshiboken-4c682d6121b5fa31c54655cb119d75e39d957ce1.tar.gz
shiboken-4c682d6121b5fa31c54655cb119d75e39d957ce1.tar.xz
shiboken-4c682d6121b5fa31c54655cb119d75e39d957ce1.zip
Shiboken binary now responds to the "--version" argument.
The version command line argument was previously answered by GeneratorRunner. This commit also generally updates some CMake files.
Diffstat (limited to 'generator/CMakeLists.txt')
-rw-r--r--generator/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/generator/CMakeLists.txt b/generator/CMakeLists.txt
index 1a2eb1f0..f3cbe084 100644
--- a/generator/CMakeLists.txt
+++ b/generator/CMakeLists.txt
@@ -10,6 +10,7 @@ shibokennormalize.cpp
)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
${APIEXTRACTOR_INCLUDE_DIR}
${GENERATORRUNNER_INCLUDE_DIR}
${QT_INCLUDE_DIR}
@@ -23,6 +24,8 @@ target_link_libraries(shiboken_generator
${GENERATORRUNNER_LIBRARY}
${QT_QTCORE_LIBRARY})
+configure_file(shibokenconfig.h.in "${CMAKE_CURRENT_BINARY_DIR}/shibokenconfig.h" @ONLY)
+
add_executable(shiboken main.cpp)
set_target_properties(shiboken PROPERTIES OUTPUT_NAME shiboken${shiboken_SUFFIX})
target_link_libraries(shiboken ${QT_QTCORE_LIBRARY})