Build a shared library not a module.
Annotate for file src/libsmoke/CMakeLists.txt
2009-04-05 tobias 1 find_package(Qt4 REQUIRED)
15:36:29 ' 2 set(QT_DONT_USE_QTGUI true)
' 3 include(${QT_USE_FILE})
' 4
2009-05-11 tobias 5 include(CheckCXXCompilerFlag)
12:05:00 ' 6 check_cxx_compiler_flag("-fvisibility=hidden" CXX_VISIBILITY)
' 7 if(CXX_VISIBILITY)
' 8 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
' 9 endif(CXX_VISIBILITY)
' 10
2010-01-10 tobias 11 set(SMOKE_C_SOURCES smoke.cpp smokebinding.cpp)
2010-02-15 tobias 12 add_library(clsmoke SHARED ${SMOKE_C_SOURCES})
2010-01-10 tobias 13 set_target_properties(clsmoke
2009-05-30 tobias 14 PROPERTIES
12:12:25 ' 15 SOVERSION "0.0"
' 16 VERSION "0.0.1")
2009-04-05 tobias 17
2010-02-15 tobias 18 add_library(clsmokeutil SHARED smoke_util.cpp)
2010-01-10 tobias 19 set_target_properties(clsmokeutil
2009-05-30 tobias 20 PROPERTIES
12:12:25 ' 21 SOVERSION "0.0"
' 22 VERSION "0.0.1")
2009-04-05 tobias 23
2010-02-17 tobias 24 install(TARGETS clsmoke clsmokeutil
17:05:35 ' 25 LIBRARY DESTINATION lib)