Remove underlinking of libclsmoke and add a darwin case to the library definitons.
src/libsmoke/CMakeLists.txt
Wed Feb 17 18:05:35 CET 2010 Tobias Rautenkranz <tobias@rautenkranz.ch>
* Remove underlinking of libclsmoke and add a darwin case to the library definitons.
Thanks to Elliott Slaughter
--- old-smoke/src/libsmoke/CMakeLists.txt 2014-10-30 08:07:08.000000000 +0100
+++ new-smoke/src/libsmoke/CMakeLists.txt 2014-10-30 08:07:08.000000000 +0100
@@ -8,8 +8,23 @@
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
endif(CXX_VISIBILITY)
+
+# FIXME look for smoke.h
+find_library(smokeqtcore_LIB smokeqtcore)
+if (smokeqtcore_LIB)
+ set(smokeqtcore_FOUND TRUE)
+endif (smokeqtcore_LIB)
+
+if (smokeqtcore_FOUND)
+ message(STATUS "Found smokeqtcore: ${smokeqtcore}")
+else (smokeqtcore_FOUND)
+ message(FATAL_ERROR "Could not find smokeqtcore")
+endif (smokeqtcore_FOUND)
+
+
set(SMOKE_C_SOURCES smoke.cpp smokebinding.cpp)
add_library(clsmoke SHARED ${SMOKE_C_SOURCES})
+target_link_libraries(clsmoke ${QT_LIBRARIES} ${smokeqtcore_LIB})
set_target_properties(clsmoke
PROPERTIES
SOVERSION "0.0"
@@ -21,5 +36,4 @@
SOVERSION "0.0"
VERSION "0.0.1")
-install(TARGETS clsmoke clsmokeutil
- LIBRARY DESTINATION lib)
+install(TARGETS clsmoke clsmokeutil DESTINATION lib)