-set_target_properties(tint2conf PROPERTIES COMPILE_FLAGS -Wall)
-#set_target_properties(tint2conf PROPERTIES LINK_FLAGS -Wl,--as-needed)
+if ( NOT DATADIR )
+ set( DATADIR share )
+endif( NOT DATADIR )
+
+add_definitions( -DINSTALL_PREFIX=\"${CMAKE_INSTALL_PREFIX}\" )
+set_target_properties( tint2conf PROPERTIES COMPILE_FLAGS "-Wall -pthread" )
+set_target_properties( tint2conf PROPERTIES LINK_FLAGS "-pthread" )