7
${PROJECT_SOURCE_DIR}/../scriptabletags
10
include(${QT_USE_FILE})
12
configure_file(grantlee_version.h.cmake ${PROJECT_BINARY_DIR}/grantlee_version.h)
14
set (grantlee_core_SRCS
30
set(scriptabletags_FILES
32
scriptablefilterexpression.cpp
35
scriptablesafestring.cpp
37
scriptabletemplate.cpp
38
scriptablevariable.cpp
42
foreach(file ${scriptabletags_FILES})
43
set(scriptabletags_SRCS ${scriptabletags_SRCS} ${CMAKE_SOURCE_DIR}/scriptabletags/${file})
46
set(Grantlee_CORE_LIB_SOVERSION 0)
48
set(moc_SRCS ${grantlee_core_SRCS} ${scriptabletags_SRCS})
50
qt4_automoc(${moc_SRCS})
52
add_library(grantlee_core SHARED
54
${scriptabletags_SRCS}
57
target_link_libraries(grantlee_core
59
${QT_QTSCRIPT_LIBRARY}
62
set_target_properties(grantlee_core PROPERTIES
63
VERSION ${Grantlee_VERSION_MAJOR}.${Grantlee_VERSION_MINOR}.${Grantlee_VERSION_PATCH}
64
SOVERSION ${Grantlee_CORE_LIB_SOVERSION}
65
DEFINE_SYMBOL GRANTLEE_CORE_LIB_MAKEDLL
68
install(TARGETS grantlee_core
69
RUNTIME DESTINATION ${BIN_INSTALL_DIR}
70
LIBRARY DESTINATION ${LIB_INSTALL_DIR}
71
ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
81
grantlee_core_export.h
82
${PROJECT_BINARY_DIR}/grantlee_version.h
93
DESTINATION ${INCLUDE_INSTALL_DIR}/grantlee COMPONENT Devel
98
DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel