Remove underlinking of libclsmoke and add a darwin case to the library definitons.
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-02-17 tobias 11
17:05:35 ' 12 # FIXME look for smoke.h
' 13 find_library(smokeqtcore_LIB smokeqtcore)
' 14 if (smokeqtcore_LIB)
' 15 set(smokeqtcore_FOUND TRUE)
' 16 endif (smokeqtcore_LIB)
' 17
' 18 if (smokeqtcore_FOUND)
' 19 message(STATUS "Found smokeqtcore: ${smokeqtcore}")
' 20 else (smokeqtcore_FOUND)
' 21 message(FATAL_ERROR "Could not find smokeqtcore")
' 22 endif (smokeqtcore_FOUND)
' 23
' 24
2010-01-10 tobias 25 set(SMOKE_C_SOURCES smoke.cpp smokebinding.cpp)
2010-02-15 tobias 26 add_library(clsmoke SHARED ${SMOKE_C_SOURCES})
2010-02-17 tobias 27 target_link_libraries(clsmoke ${QT_LIBRARIES} ${smokeqtcore_LIB})
2010-01-10 tobias 28 set_target_properties(clsmoke
2009-05-30 tobias 29 PROPERTIES
12:12:25 ' 30 SOVERSION "0.0"
' 31 VERSION "0.0.1")
2009-04-05 tobias 32
2010-02-15 tobias 33 add_library(clsmokeutil SHARED smoke_util.cpp)
2010-01-10 tobias 34 set_target_properties(clsmokeutil
2009-05-30 tobias 35 PROPERTIES
12:12:25 ' 36 SOVERSION "0.0"
' 37 VERSION "0.0.1")
2009-04-05 tobias 38
2010-02-17 tobias 39 install(TARGETS clsmoke clsmokeutil DESTINATION lib)