--- CMakeLists.txt	2014-11-05 22:03:10.000000000 -0500
+++ CMakeLists.txt	2014-11-05 22:06:47.000000000 -0500
@@ -5,9 +5,7 @@
 
 include_directories( "${PROJECT_SOURCE_DIR}" )
 
-include_directories( "/usr/include" )
-include_directories( "/usr/local/include" )
-include_directories( "/opt/local/include" )
+include_directories( "@PREFIX@/include" )
 
 ADD_DEFINITIONS( -std=c++0x )
 
@@ -19,12 +17,8 @@
 ##############################################################################
 # Install - Library
 ##############################################################################
-if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
-	set( MAKE_INSTALL_PREFIX "/opt/local" )
-	set_target_properties( streamlog PROPERTIES MACOSX_RPATH 1 )
-else()
-	set( MAKE_INSTALL_PREFIX "/usr/local" )
-endif()
+set( MAKE_INSTALL_PREFIX "@PREFIX@" )
+set_target_properties( streamlog PROPERTIES MACOSX_RPATH 1 )
 
 install( FILES "${PROJECT_SOURCE_DIR}/streamlog.h" DESTINATION "${MAKE_INSTALL_PREFIX}/include/streamlog" )
 install( TARGETS streamlog LIBRARY DESTINATION "${MAKE_INSTALL_PREFIX}/lib" )