Permalink
Browse files

Install the cmake module to a better location

  • Loading branch information...
1 parent d20fc8a commit d7c5d8d89ae7109b1579840e70827c99616806bc @Kazade committed Feb 1, 2013
View
@@ -4,6 +4,7 @@ PROJECT(kazmath)
ENABLE_TESTING()
FIND_PACKAGE(PkgConfig REQUIRED)
+
SET(CMAKE_C_FLAGS "-std=c99")
#ADD_DEFINITIONS("-DUSE_DOUBLE_PRECISION")
File renamed without changes.
View
@@ -1,8 +1,9 @@
#ADD_LIBRARY(Kazmath STATIC ${KAZMATH_SRCS})
#INSTALL(TARGETS Kazmath ARCHIVE DESTINATION lib)
-
+FIND_PACKAGE(Threads REQUIRED)
ADD_LIBRARY(kazmath SHARED ${KAZMATH_SOURCES})
+TARGET_LINK_LIBRARIES(kazmath ${CMAKE_THREAD_LIBS_INIT})
SET_TARGET_PROPERTIES(kazmath
PROPERTIES
VERSION 0.0.1
@@ -14,4 +15,4 @@ INSTALL(TARGETS kazmath DESTINATION lib)
INSTALL(FILES ${KAZMATH_HEADERS} DESTINATION include/kazmath)
INSTALL(FILES ${GL_UTILS_HEADERS} DESTINATION include/kazmath/GL)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/../cmake_modules/FindKAZMATH.cmake DESTINATION /usr/share/cmake/Modules)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/../cmake_modules/KAZMATHConfig.cmake DESTINATION ${CMAKE_INSTALL_PREFIX}/share/kazmath)

0 comments on commit d7c5d8d

Please sign in to comment.